Viewing 15 posts - 16 through 30 (of 47 total)
If I read correctly what you didn't write, I think you're trying to add rows with ids N+1, N+2, etc to a table with N records in it.
You can do...
May 31, 2007 at 10:05 am
A couple of comments:
Using OpenQuery causes the entire resultset to be shipped across the network.
If it is large, then this will take some time.
For example
Select...
May 31, 2007 at 5:05 am
Execute only returns status information for the last command presented to it. You need to execute each insert statement separately, testing @@error after each.
May 31, 2007 at 1:48 am
Let me try to explain what's going on in a little more detail.
Using the northwind database query
SELECT EmployeeID
FROM Orders
GROUP BY EmployeeID
returns 9 rows (Employee ids 1, 2, ... 8,...
November 16, 2005 at 7:52 am
Been playing around with the SQL above.
The reason the original SQL returns 0, 0 is because hidden in the query is a cross join where one of the queries returns...
November 15, 2005 at 1:42 pm
Looks like you're trying to execute a table name as a stored procedure:
i.e. something like
Set ocmd = Server.CreateObject("AODB.Command")
...
ocmd.commandtext = "table_name"
ocmd.commandtype = adcmdstoredproc
ocmd.execute
This will fail with an error similar to the...
November 15, 2005 at 1:11 pm
I'd use both options, especially if the reports are essentially static:
XML+XSLT to generate a HTML page, which you then serve to the client. This works well if you can pre-generate...
November 15, 2005 at 12:57 pm
Gentlemen,
Thanks for the comments.
I don't think RGR'us' solution meets the needs despite being neat code, as usual.
The problem setting was:
"I need to pass a StartDate parameter and count of businessdays....
September 28, 2005 at 3:20 am
after the detective work and name calling , back to work.
How's about:
Declare @d datetime
Declare @businessDays int
Declare @cnt int
set @d = '2004/09/18' --...
September 27, 2005 at 4:56 pm
I'm struggling.
I tried connecting to MSDE with Access (I have version XP/2002) on my test box using both a data project (.adp) and an ODBC connection in a MS...
September 27, 2005 at 4:19 pm
Phill,
Thanks for the reply.
We can't use SQL/Server/64bit as we're running on opterons (x86 architecture) and not itaniums. We are using Windows 2003 Enterprise 64 Bit.
The little documentation I found trawling...
September 21, 2005 at 2:19 pm
How does Windows 2003/64 bit fit into the picture? We're running on opteron (not itanium) boxes with 32GB ram, but the most I'm able to allocate to sql/server is 4GB....
September 21, 2005 at 6:29 am
Try SQL Server Query Performance Tuning Distilled by Sajal Dam. It's published by Apress ISBN 1-59059-421-5.
September 19, 2005 at 11:40 am
Good reason not to use SP_:
If you do SQL/Server will look for the sproc in Master, and then your user database if it doesn't find it even if you qualify...
September 19, 2005 at 11:29 am
Viewing 15 posts - 16 through 30 (of 47 total)