Viewing 15 posts - 10,516 through 10,530 (of 13,461 total)
the only way i could think of doing this was with a check cosntraint and a user defined function.
if you could have provided more details, we could have helped with...
September 17, 2009 at 9:08 am
you cannot create a table on the fly across a linked server. the select into...from tries to do that.
you can only insert into tables that exist.
so INSERT INTO ...
September 17, 2009 at 5:19 am
I've used extended properties for this purpose; then i can test if the extended property has the desired value before decinding to allow a script to run or not.
[here's an...
September 16, 2009 at 3:09 pm
you get the best results here if you provide full details(if you can), the CREATE TABLE, the specific condition(THIS column changes, affect THIS OTHER column)
here's an example which *I Think*...
September 15, 2009 at 11:16 am
so you need to generate just under a million rows;
here's how i did it:
DECLARE @StartRange BINARY(8)
DECLARE @EndRange BINARY(8)
SET @StartRange = 0x00000004A500114B
SET @EndRange = 0x00000004A50F11FF
--select convert(integer,+ @EndRange)...
September 15, 2009 at 9:11 am
Nice solution, Jonathan;
only thing i thought is he might want the preceeding zeros for comparison, if he needs the values as flags?
for example the value 2 returns "10",where he might...
September 15, 2009 at 9:03 am
ok here's one way:
i'm assuming you want it in the same format i see when i do ipconfig/all
pairs of [0-9,A-E] with dashes:
cross joining the widget below against a row-number derived...
September 15, 2009 at 8:31 am
you have to join against the master table of all the departments;
otherwise if it doesn't exist in the employees table you cannot display it
something like this:
select
alldepartments.department ,
...
September 15, 2009 at 7:46 am
both bcp and the more robust sqlcmd have the ability to be fed a query and output the results to a file;
that is your best choices, unless you write/find a...
September 15, 2009 at 7:20 am
I'm guessing you are just coming on board with a shop that does this? I would say they must have that software in their shop already; I would lean more...
September 15, 2009 at 5:11 am
its that integer division raising it's ugly head again;
both counts are INT values, and SQL figures if you do any math(add,subtract, muultiply or divide) to two integers, the answer must...
September 14, 2009 at 2:38 pm
doh! i was looking for that kind of logic hole, too small-o-variable, glad you found it!
September 14, 2009 at 2:26 pm
not that I'm particularly evil or anything, but if I joined a month before, say Jeff Moden did, does that mean if I change my username now to "Jeff Moden",...
September 14, 2009 at 10:47 am
i thought i read here on the forum that xp_delete would only delete certain extensions of for file names....
when i ggogled "SQL SERVER xp_delete file extensions", i found some different...
September 14, 2009 at 9:24 am
sp_getDDL returns the complete CREATE TABLE command in TSQL; I've been using it in a DDL audit trigger, and also using it more often then sp_help.
Could some of you folks...
September 14, 2009 at 4:26 am
Viewing 15 posts - 10,516 through 10,530 (of 13,461 total)