Viewing 15 posts - 7,261 through 7,275 (of 15,381 total)
OldSageMonkey (8/6/2013)
Hi Durai,No we are the only ones that use the server, its ours. I tried to make my suggestion to schedule a job and that was that.
So if you...
August 6, 2013 at 8:48 am
redy007 (8/6/2013)
I am new in t-sql (started today). Could you help me with the issue I have?
on line 14 (if EXISTS(SELECT * from @table_name)) the output is
Lookup...
August 6, 2013 at 8:38 am
muthyala_51 (8/6/2013)
Why not use a database diagram? That is pretty much what they are intended to be used for.
The problem is we have too many tables which are inter related....
August 6, 2013 at 8:36 am
No problem. Sometimes it is just the second set of eyes needed to look at the problem. Happy to help.
August 6, 2013 at 8:34 am
freecoder (8/6/2013)
cool..Will update the sample data tomoro as I am finishing work now.
Cheers.
Sounds good. I am sure that if I am not able to help you that some of the...
August 6, 2013 at 8:24 am
muthyala_51 (8/6/2013)
August 6, 2013 at 8:20 am
freecoder (8/6/2013)
The sample data is very different.
I just wanted to give a hint ..how the table should look like..its not actual representation of the data..
hope it makes sense?...
August 6, 2013 at 8:19 am
Lrobinson 93181 (8/6/2013)
August 6, 2013 at 8:14 am
Maybe I am missing something but your sample data does not seem to make sense compared to the picture you posted for desired output. You have 3 rows and they...
August 6, 2013 at 8:03 am
Your table and the sample data don't seem to line up very well. First you were inserting the identity but when I removed that there are datatype mismatches. Is LeaveTypeName...
August 6, 2013 at 8:00 am
karunakar2351 (8/6/2013)
SELECT
IDENTITY(INT,1,1) AS D_Key,
C_Key,
D_Num,
D_Name,
D_Address
INTO D_Table2
FROM D_Table1
I need to populate a table based on results from a query. If I do:
INSERT INTO table2
SELECT
IDENTITY(INT,1,1) AS D_Key,
C_Key,
D_Num,
D_Name,
D_Address
FROM D_Table1
It gives me...
August 6, 2013 at 7:39 am
This produces the same results.
select name , convert(int, LOGINPROPERTY(name, 'BadPasswordCount')),
convert(datetime, LOGINPROPERTY(name, 'BadPasswordTime')),
convert(datetime, LOGINPROPERTY(name, 'DaysUntilExpiration')),
convert(datetime, LOGINPROPERTY(name, 'LockoutTime')),
convert(int, LOGINPROPERTY('loginname', 'IsLocked')),
convert(datetime, LOGINPROPERTY(name, 'PasswordLastSetTime')),
DATEADD(DD, 90, (convert(datetime, LOGINPROPERTY(name, 'PasswordLastSetTime'))))
from sys.server_principals
where type = 'S' and is_disabled...
August 6, 2013 at 7:36 am
Lrobinson 93181 (8/6/2013)
August 6, 2013 at 7:29 am
What you are describing is string parsing. While the article referenced above is ok, the one in my signature has a version that is way faster than xml parsing. I...
August 5, 2013 at 2:51 pm
Thanks for the ddl and data. What I don't understand is the desired output. Since WKBW has a bit fewer rows let's look at that one.
OUTPUT
WKBW 7/5/13 12:00 PM 7/5/13...
August 5, 2013 at 2:40 pm
Viewing 15 posts - 7,261 through 7,275 (of 15,381 total)