Viewing 15 posts - 10,306 through 10,320 (of 13,460 total)
MrT I'm not sure what the final objective is, but this is the first thing i thought of;
DECLARE @VariableA DECIMAL(7,4)
SELECT @VariableA = 7.0449
SELECT CEILING(@VariableA * 100.0)/100.0
SELECT @VariableA = 7.0001
SELECT CEILING(@VariableA...
Lowell
November 22, 2009 at 6:32 am
the way i usually do it is like this, which keeps everything in the same datetime datatype with no conversions, and effectively strips/zeros the time portion:
--Midnight for the Current Day
select...
Lowell
November 19, 2009 at 1:04 pm
looks an awful lot like homework, so lets see what you've done so far;
we need to help you learn the concepts, and not do the work for you.
did you actually...
Lowell
November 19, 2009 at 12:52 pm
i thought maybe using the PARSENAME function might get you to where you wanted...tis is still sorting as text, we could change that a bit, but i thought this was...
Lowell
November 19, 2009 at 7:36 am
assuming your linked server was aliased as "MyOracle" this command should help:
--list all the tables and their names
EXEC sp_tables_ex MyOracle
GO
we have a "model" kind of schema withthe user "CHANGE_ME" as...
Lowell
November 19, 2009 at 6:09 am
ugg...i was pasting an example that uses the FOR XML to resolve this, and realized you posted in a SQL 2000 forum.
the best way is to use the trick that...
Lowell
November 18, 2009 at 8:05 pm
shew (11/18/2009)
AlexSQLForums (11/18/2009)
http://www.sqlservercentral.com/Forums/Topic326235-5-1.aspxSorry, I'm looking for a "65536" hit on the status column, rather than the status2 column.
look at the post again...the code for reading the status column is a...
Lowell
November 18, 2009 at 7:38 pm
yes...
exec sp_tables_ex LinkedServerName
that will show all the sheets(tables) that exist in the Excel spreadsheet...or any other linked server for that matter. that retrieves the metadata from whatever linked server...
Lowell
November 13, 2009 at 7:25 am
Lynn Pettis (11/12/2009)
Geez, Lowell, you take all the fun out making the OP tell us what the problem is... 😉
mea culpa; it was low hanging fruit and i'm try...
Lowell
November 12, 2009 at 11:52 am
syntax.
a case statement has only a single CASE keyword between the CASE and END,
ie
CASE
WHEN [condition1] THEN [value]
WHEN [condition2] THEN [value]
ELSE [value3]
END
you can look...
Lowell
November 12, 2009 at 10:55 am
to get the table counts, i see you'll have to loop thru everything one way or the other;
here's one way to do what you asked...i'm using sp_msforeachdb, which uses a...
Lowell
November 12, 2009 at 10:47 am
oops sorry i misread your code...i thought @KeyWhat was which field,@keywhere was the value...i updated my code, but it's not what you wanted...except if they only use one of the...
Lowell
November 11, 2009 at 5:20 am
at the very least, you can get rid of the OR statements, correct?
it looks like your application picks two search terms, but your current WHERE statement you build searches 8...
Lowell
November 11, 2009 at 5:14 am
the problem is you have a "do all find all" procedure. it has tha couple of problems:
multiple OR statements.
LIKE statements that start with a percent sign.
with multiple OR...
Lowell
November 10, 2009 at 6:24 pm
JC-3113 (11/10/2009)
Hi GSquaredif i restore a table, are the index(s) also restored with it, or do I have to do additional steps ?
Thanks
Jim
If a table was dropped, it's indexes went...
Lowell
November 10, 2009 at 10:37 am
Viewing 15 posts - 10,306 through 10,320 (of 13,460 total)