Viewing 15 posts - 5,461 through 5,475 (of 13,468 total)
bcp doesn't add headers, so you have to do it manually.
here's two examples i keep onhand for that:
--BCP to get headers
--Version 1: global temp table
--note i'm making sure my headers...
May 29, 2012 at 1:44 pm
can't see a reason for the calculated persistent column;
here's my prelim version of your schema, based on what you posted:
by making the column not null, with a foeign key,...
May 29, 2012 at 8:59 am
well it looks like it can be done without the cursor and also without the dynamic SQL;
this SELECT is the section that would be doing the INSERT;
how many rows does...
May 29, 2012 at 7:47 am
well the details are certainly different now that the DDL is posted.
the DDL details you posted is doing an Insert, not an update, and it's not joining on five...
May 29, 2012 at 7:36 am
Charmer (5/29/2012)
GilaMonster (5/29/2012)
Charmer (5/29/2012)
i googled for checking 'update top' command....but it is like "update top 100 table set column = value "...Yup, that's the command.
oh....but i am not sure how...
May 29, 2012 at 6:51 am
first a gentle reprimand: you've seen enough posts about providing code...posting pseudo code gets you a psuedo-answer that you have to adapt and ask more questions about...if you posted your...
May 29, 2012 at 6:12 am
truncating or deleting never returns file space to the server; it merely clears the internal tables so SQL can reuse the same space. SQL continues to reserve all that space...
May 27, 2012 at 3:12 am
another option:
if you use a common naming convention across related procs/tables etc, SSMS has the little used option to filter the results in the Object Browser to limit the items...
May 25, 2012 at 7:04 am
michael vessey (5/24/2012)
May 24, 2012 at 8:43 am
the truncation is because by default, to save memory, SSMS limits the Results-To-Text to the first 256 characters, regardless of the results.
change it in your options to 8000
not that no...
May 23, 2012 at 11:57 am
express 2012 is free, and you can get it straight from microsoft;
the enterprise evaluation edition is also free, but it expires after a while.
both of those you can google for...
May 22, 2012 at 3:25 pm
SQLKnowItAll (5/22/2012)
Just saw this link in another post from Lowell: http://msdn.microsoft.com/en-us/library/ms143412.aspx
I was going to paste it here two! two questions on the same subject just a couple of minutes apart;...
May 22, 2012 at 1:30 pm
simple syntax issue.
you have BEGIN ( and ) END; the parentheses are not allowed
cthis is syntactically correct:
CREATE PROCEDURE Casino.SP_SLOTMACHINE
@User NVARCHAR(10),@bet INT
AS
BEGIN
DECLARE @L_Wheel...
May 22, 2012 at 1:29 pm
not natively no. if the database is set to 60 gig, even though it's 10% used, you need 60 gig to restore it.
that said, Redgates SQL virtual restore will...
May 22, 2012 at 1:20 pm
in our shop, all the identity columns contain the tablename + Id, so repeating the tablename would be repetitively redundant 🙂
so for example TBAddress would have an identity TBAddressID...
May 22, 2012 at 11:44 am
Viewing 15 posts - 5,461 through 5,475 (of 13,468 total)