Viewing 15 posts - 10,231 through 10,245 (of 13,461 total)
if you add a drop columns from a table, the column_id is dropped with it; then when you add additional columns, the next column_id is used.
so if you drop column...
December 15, 2009 at 10:31 am
here you go:
this was the product of an afternoon of too much time on my hands...i was surfing Wiki looking at planets when they renamed Pluto to a planetoid, and...
December 15, 2009 at 7:51 am
i'd say your table's attempts column was not initialized to zero, but instead has nulls:
select @NewAttempts = hua.attempts + 1 from hub_user_auth as hua
where hua.id = @UserID
would probably be better...
December 15, 2009 at 5:29 am
ok i found an old project i was screwing around with, let me know if you want it;
it's a suite of tables, all inter related with FK's and all that,...
December 14, 2009 at 10:02 pm
here's one i use regularly:
it's a typical thing you find for free, 42K records more or less, in a TAB delimited format i think.
I can tweak it into comma delimited...
December 14, 2009 at 9:44 pm
also, here is an example of converting that unusualdate format into a datetime field:
--results:
BeginOfMonth DaMonth ...
December 14, 2009 at 1:27 pm
can you post some sample data you would be importing as well as the CREATE TABLE of the destination table?
you said the first two values of 10141045 was the day,...
December 14, 2009 at 1:08 pm
BCP is what you would use to get a table or query's results into a file; you'll really need to read Books On Line for the syntax, as I rarely...
December 14, 2009 at 12:41 pm
you'll want to use the optional ALIAS for each columnname.
descriptions with spaces require brackets or double quotes.
based on your example, here's what it might look like:
SELECT
employeeid AS...
December 14, 2009 at 12:35 pm
here's a code example of what John and roy are talking about with the calculated column:
Create Table Example(P int identity(1000,1) , --starts at 1000
PCODE AS 'P' + CONVERT(varchar,(P)) PERSISTED, ...
December 14, 2009 at 12:27 pm
i THINK i understood what you are after;
it's still looking in the same view i mentioned.
try this, and comment/uncomment the WHERE/AND statements to see the differences:
select name,* from syslogins
where...
December 14, 2009 at 12:05 pm
yeah it seems misleading.
I would say it is ALWAYS Characters. it's just coincidence that when you have a varchar, the bytes=# chars. i think that was what they were trying...
December 14, 2009 at 11:44 am
the GO command after every related group of commands would do what you want, i think.
you'd want to make sure there was no explicit transaction open i think, as well.
December 14, 2009 at 11:41 am
jsb1212 (12/14/2009)
how do i get just the sql logins using sp_help_revlogin?
sp_help_revlogin serves a specific purpose: scripting out the commands to create the logins, complete with the password. it has output...
December 14, 2009 at 11:37 am
To build on what CozyRoc said, the issue is your choice of application in opening a CSV file;
if you use a raw text editor, like EditPlus,Notepad++,UltraEdit32, etc, they all open...
December 14, 2009 at 7:15 am
Viewing 15 posts - 10,231 through 10,245 (of 13,461 total)