Viewing 15 posts - 4,951 through 4,965 (of 7,187 total)
SELECT INTO creates a new table. If you want to insert into an existing table, do it like this:
INSERT INTO Table1 (ColA, ColB, ...)
SELECT ColA, ColB, ...
FROM Table2
John
November 11, 2011 at 4:49 am
Two things you might consider are converting your scalar-value "Get" functions to table-value functions, and omitting the ORDER BY and having your presentation layer do the sorting instead.
John
November 11, 2011 at 4:14 am
How many boxes in total (2 for each node, do I need a witness and a DNS box too [4 in total])?
Each node is a "box", so for a two-node...
November 11, 2011 at 3:46 am
Dev (11/11/2011)
November 11, 2011 at 1:48 am
The error message tells you what you need to know. You can't use the same physical files for a different database. You have to specify new files.
John
November 10, 2011 at 4:24 am
Lee
(1) http://www.sqlservercentral.com/articles/Administration/2960/
(2) That's the Windows version.
John
November 10, 2011 at 4:03 am
Never code an application so that a transaction waits for user input. You'll have too many locking issues when users forget to complete their work before they go off...
November 10, 2011 at 3:38 am
If you're just executing a simple insert, why do you need an explicit transaction? If you want to do it like this, I think you'll need something in your...
November 10, 2011 at 2:43 am
You could try searching for "gaps and islands" - this looks like a similar principle to that.
John
November 10, 2011 at 2:01 am
Instead of GETDATE()-1, try DATEADD("Day",-1,GETDATE()).
John
November 10, 2011 at 1:16 am
So you want the date in the file name always to be yesterday's date? Best way to do that is to do some date arithmetic and take one day...
November 9, 2011 at 9:13 am
SSIS isn't free, but it comes with the product, so it won't cost you anything extra to write a package that will connect to each server and get the information...
November 9, 2011 at 8:52 am
Good work, Cadavre, especially generating all those random postcodes! The following are also legal postcodes, and I've checked that your code also works with them:
'N12 4DB'
'SW1A 4DB'
'W1B 4DB'
'L1 4DB'
'LS1...
November 8, 2011 at 7:33 am
I'm afraid I don't understand what the difficulty is. Just give the SQL Server Agent service account the necessary permissions on the share and everything should work.
John
November 8, 2011 at 6:39 am
Yes, we have no DDL or sample data, so it's difficult to visualise and impossible to test. However, are those nested statements necessary? This should work:
case when bh_type...
November 8, 2011 at 6:33 am
Viewing 15 posts - 4,951 through 4,965 (of 7,187 total)