Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. snakehips2000

    Entity Framework, MVC, ASP.NET, ASP.NET Core etc… etc

    I'm looking to develop a basic website to administer a sports league. I'm an experienced SQL Server database developer but am new to web development. I wish to make full use of my database skills in manipulating data so will be preferring to use the efficiency of pre-compiled stored procedures...
  2. snakehips2000

    Manipulating SQL Server 2008 Objects in VBA via SQLDMO/SMO

    No, that's the same object library I mentioned in the initial post. The point being that it doesn't work for SQL Server 2008 and has been "replaced" in some way by SMO. How to make some alien contact with the elusive SMO is what I seek.
  3. snakehips2000

    Manipulating SQL Server 2008 Objects in VBA via SQLDMO/SMO

    I use Access 2003. For many years I was able to dynamically manipulate the structure of objects in my network SQL Server 2000/2005 databases (i.e. tables, views, stored procedures etc.) by creating a reference to the SQL Server DMO object library (Tools, References). The network SQL Server...
  4. snakehips2000

    Object Variables and Multiple Users Simultaneously Same Script

    Having experimented a bit on this, I opened two separate instances of IE (not two tabs within the same instance) on the same machine and accessed my site via two different login IDs. Behind the login script there is a piece of code which sets the session("username") value. So, in IE instance 1...
  5. snakehips2000

    Object Variables and Multiple Users Simultaneously Same Script

    There's probably something basic I'm missing here but, if my ASP page contains the following: <% rsProducts.Close Set rsProducts = Nothing objConnection.Close Set objConnection = Nothing %> If User 1 runs the page and, whilst executing and having set the recordset and connection object...
  6. snakehips2000

    Execute .sql file from ADO

    Thanks for the response. I think I've either understated the problem or you've overlooked something. I'm trying to use the script contained within the actual .sql file itself, i.e. not hard-code the "SELECT ..." statement as per your example. So, I need something which accepts the path to the...
  7. snakehips2000

    Execute .sql file from ADO

    I'm looking to execute a SQL Server script which I've saved as a .sql file, from Excel VBA, and export the results into another Excel workbook via ADO. Could someone please supply a simple example? It's the referencing of the .sql file which I can't get my head around. Presumably, I also need...
  8. snakehips2000

    Find First Weekday (Mon) From Week Number

    Thanks guys for the update and the revised function coding. I guess I started off with the wrong assumption, i.e. that there were 53 weeks in 2010 when in fact there were only 52.
  9. snakehips2000

    Find First Weekday (Mon) From Week Number

    MajP - sorry if there's any confusion on this. In the subject line of the thread I tried to state that I'm looking to return the date of the first day (assuming the week runs from Monday to Sunday) for the stated week. For example, week 1 in 2011 would return 3 Jan. Likewise, week 53 for 2010...
  10. snakehips2000

    Find First Weekday (Mon) From Week Number

    I picked up the following two functions as a means of determining a date from a week number in Excel VBA. Unfortunately, when used together, they return the same date for both week 53 of 2010 and week 1 of 2011 (3 Jan). Does anyone have anything more reliable please? Thanks. Public Function...
  11. snakehips2000

    Creating/amending Oracle stored procedures via VBA

    Thanks to you both for your suggestions. I'm sure I'll find one which suits my needs.
  12. snakehips2000

    Creating/amending Oracle stored procedures via VBA

    Thanks for the replies PHV and Gruuuu. I'm aiming to do this manipulation of the Oracle SP from Excel VBA. Essentially my project involves rationalising a large set of manual processes which involve three hierarchical levels: the Oracle back-end, an Access application (where the data is being...
  13. snakehips2000

    Creating/amending Oracle stored procedures via VBA

    I know there is the SQL-DMO object library which allows all objects on a SQL Server to be manipulated, i.e. databases, tables, views, stored procedures etc., but is there an equivalent reference within VBA for the objects in an Oracle database? I'm particularly interested in changing the...
  14. snakehips2000

    sp_OAMethod - ExecuteWithResults

    Im trying to create a formatted Excel spreadsheet with the results of a T-SQL query. However, I'm getting an error when using the following code which seems to be in generic use on several forums. Can anyone tell me where my syntax is wrong? I have the necessary permissions for executing...
  15. snakehips2000

    Dynamically Declare Variable in T-SQL

    OK, here's what I'm trying to do: I'm writing a script which will allow the contents of ANY two tables to be compared (assuming they both have identical column names & datatypes). The aim is to examine the contents of Col_1 from Table_1 and check to see if any of the contained values differ...
  16. snakehips2000

    Dynamically Declare Variable in T-SQL

    I'd already tried tried sp_ExecuteSQL to no avail. If it's possible to reference a cursor declared dynamically within the same script and return 5 records (as below) ... declare @sql varchar(200) declare @my_id int set @sql='DECLARE my_cur CURSOR FOR SELECT TOP 5 [field name] FROM [table...
  17. snakehips2000

    Dynamically Declare Variable in T-SQL

    Can someone please tell me why this doesn't work? declare @sql varchar(100) SET @sql='DECLARE @myvar int' EXEC(@sql) SET @myvar=5 SELECT @myvar Thanks
  18. snakehips2000

    createElement('SELECT') not working

    Much appreciated. I guess I didn't word the aim of the exercise too well - I needed to know how to make the SELECT box visible. Your example answerered this, thanks.
  19. snakehips2000

    createElement('SELECT') not working

    Maybe I'm missing something in how this javascript statement is meant to work but I can't get a (blank) select box to display when I load a page. Any advice appreciated: <%@LANGUAGE="JAVASCRIPT" CODEPAGE="65001"%> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"...

Part and Inventory Search

Back
Top