Viewing 15 posts - 2,776 through 2,790 (of 7,187 total)
adonetok (3/2/2016)
Invalid object name '#order'
That's the name of the table you gave in your original post.
John
March 2, 2016 at 7:43 am
Several ways to do this. Probably the easiest is something like this:
INSERT INTO #order
EXEC xp_cmdshell 'dir /b \\order\2016'
John
March 2, 2016 at 7:16 am
I copied and pasted those very words into my favourite search engine. The question was answered in the very first result.
John
March 2, 2016 at 7:11 am
The first thing I would try is to change SQL Server Agent to run under a domain account instead of a built-in account. I appreciate that it's frustrating that...
March 1, 2016 at 4:50 am
DamianC (3/1/2016)
No issues with the network drive, I can access this
It's not what you can access that's important - it's what SQL Server can access. If I remember correctly,...
March 1, 2016 at 4:28 am
davidawest00 (2/17/2016)
SS will create ALL THE ROWS for a CTE before it processes the main query, whether it will need all those rows or not
Not necessarily. The query below...
February 18, 2016 at 7:56 am
Grumpiness will be the least of your worries. It will be more difficult to validate entries, and you're breaking the rules of normalisation by forcing two attributes into one...
February 18, 2016 at 5:27 am
You can't fit a square peg into a round hole. If you don't want to add and extra column to t3, you'll have to resort to unsatisfactory methods such...
February 18, 2016 at 4:59 am
Do you have sp_whoisactive on your server? If not, look it up, install it on a test server, and when you're happy with it, put it on your live...
February 16, 2016 at 2:25 am
SQL!$@w$0ME (2/15/2016)
What/why is the extra 31 GB used by SQL?
Gail is right about Task Manager, of course. But even if we assume Task Manager is telling the truth,...
February 15, 2016 at 9:32 am
What details of the password policy are you looking for? As far as I know, the password policy is inherited from Windows and doesn't change from login to login.
John
February 15, 2016 at 8:54 am
If the source and destination are in the same database, or even a different database on the same instance, I'd be surprised if SSIS were the better option. But...
February 15, 2016 at 5:47 am
It's better use proper date arithmetic than rely on character conversions that are less efficient and vulnerable to regional settings. Try something like this:
SET @START_DATE = DATEADD(MONTH,@START_MONTH-1,DATEADD(YEAR,@START_YEAR-1900,'19000101')
John
February 15, 2016 at 4:00 am
Does the query work if you run it in Management Studio?
If this is something you're going to do frequently (or even if it isn't), you might consider creating a permanent...
February 15, 2016 at 3:47 am
You haven't posted the stored procedure definition, but I'm guessing it connects to a remote server, maybe using a linked server. Perhaps 2:00 to 2:30 am is when index...
February 15, 2016 at 2:23 am
Viewing 15 posts - 2,776 through 2,790 (of 7,187 total)