Viewing 15 posts - 10,321 through 10,335 (of 13,461 total)
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...
November 10, 2009 at 10:37 am
george here's one way to do it;
i'm using a function CHARINDEX2, which finds the Nth occurrance of a string within the string.
with that, i can find the first CrLf and...
November 10, 2009 at 10:20 am
here's one way to do it; in this case, i put the total Hours a s acolumn in the same row...not normalized, repetative, but the data is there.
this is based...
November 10, 2009 at 9:28 am
vikas bindra (11/10/2009)
You sure that you are using 2008.Because in SSMS 2008 it gives an error if you type a table name that doesn't exists.
not true.
when it comes to compiling...
November 10, 2009 at 8:56 am
it's just a bit bigger: (19,4)
here's an example:
create table money(
mymoney money)
select * from sys.columns where name = 'mymoney'
select type_name(system_type_id) ,
type_name(user_type_id),
'('+ convert(varchar,precision)+ ','+ convert(varchar,scale) + ')'
from sys.columns where...
November 9, 2009 at 12:45 pm
in SQL server, there is always more than one way to skin a cat:
this should provide the same logic...the order by is the key:
create table #NoName(
ProdCode varchar(30),
Width ...
November 9, 2009 at 12:13 pm
Richard
for my DDL database trigger, I'm using execute as without an issue;
here's how my trigger starts:
CREATE TRIGGER [ReturnPREventData]
on DATABASE WITH EXECUTE AS 'dbo'
FOR
CREATE_PROCEDURE, DROP_PROCEDURE, ALTER_PROCEDURE
AS
here's a complete exampel for...
November 9, 2009 at 11:46 am
while you are running on 2005, your database seems to be set for compatibility 80.
row_number function is compatibility 90 and above
November 9, 2009 at 11:06 am
you'll want to try my code featuring row_number at the bottom of the example i pasted.
let me know if that works for you.
November 9, 2009 at 10:57 am
George the display of the chars depends on the presentation application; what program is viewing the data as squares
SSMS in gridview mode replaces vbCrLf(CHAR(13) + CHAR(10) )with a single space.
SSMS...
November 9, 2009 at 10:41 am
here's how i would do it, not sure if it is what you want:
in the example you gave, there was only one possible solution for Width : 1.5 Height :...
November 9, 2009 at 10:32 am
bugop (11/9/2009)
November 9, 2009 at 10:13 am
GilaMonster (11/6/2009)
Look in the SQL error log.
Thanks Gail; for proof of concept i changed one of my databases, and here's a screenshot of the results: it's found in the Application...
November 6, 2009 at 11:20 am
sometimes using the UPDATE FROM syntax can keep you from fatfingering the correlated subquery like that; i know i did that same error to an invoices table a long time...
November 6, 2009 at 8:25 am
need a clarification: your procedure had two spelling errors in it, as well as a syntax error for the cursor declaration;
select [MemberID], [TransactionType], ClosingBalance
from temp_SchemeDetails
group by [MemberID], [TransactionType]
Msg 8120, Level...
November 6, 2009 at 7:23 am
Viewing 15 posts - 10,321 through 10,335 (of 13,461 total)