Viewing 15 posts - 9,826 through 9,840 (of 13,469 total)
for me,trolling through the forums here on SSC, i literally copy and paste every example that interests me into a SSMS window and run it.
that's why everyone encourages(demands?) that...
March 23, 2010 at 8:05 am
srinath.chai (3/17/2010)
Hi Guys,I got the similar requirement but I am struggling to complete it
if you have found the solutions can you please share with me
Thanks in advance
Regards,
~Sri
the devil is in...
March 23, 2010 at 7:46 am
andrew in my sql 2008 db, if i create a diagram, then a single row is created in the table dbo.sysdiagrams.
select * from dbo.sysdiagrams
name ...
March 23, 2010 at 7:05 am
you can do it with a tally table as well;
for example the function I'm pasting below will strip out everything except chars in my specific range of ascii characters:
--ascii...
March 23, 2010 at 6:33 am
Thank you for the salute Jason and Thanks for identifying the fix, Chris;
Something that might escape some folks is did you know that C2 auditing is just another version...
March 23, 2010 at 6:11 am
i think you want something like this, but the key is which column has the "status", and it's data type:
i assummed a string field, but you'll get the idea once...
March 22, 2010 at 12:17 pm
duplicate post.
continue reading here:
http://www.sqlservercentral.com/Forums/Topic887248-391-1.aspx#bm887384
March 22, 2010 at 10:54 am
duplicate post.
continue reading here:
http://www.sqlservercentral.com/Forums/Topic887248-391-1.aspx#bm887384
March 22, 2010 at 10:52 am
with stored procs, it's a best practice to add SET NOCOUNT ON as the first line of the proc;
this prevents other applications from thinking subsets or commands like (x...
March 22, 2010 at 9:51 am
slight formatting change, added a few aliases, this is syntactically correct:
INSERT INTO database2..table1 (Date, Emails1, Emails2, Emails3)
SELECT getdate() -1 As TheRightDate,X1.CNT,X2.CNT,X3.CNT
FROM
(SELECT count(*) AS CNT FROM database1..table1 WITH (NOLOCK) WHERE...
March 22, 2010 at 9:08 am
i'd have to test it, but by avoiding some string manipulations, it might save a microsecond or two on a big batch; i think it's just shorter and easier on...
March 22, 2010 at 9:00 am
data that is in YYYYMMDD format will natively change to datetime with the code i added...no need to chop it up into pieces; try convert(datetime,sdate) and it should work fine.
March 22, 2010 at 8:48 am
once you've converted to datetime, the comparison should be easy;
here's how to convert your julian date; the other appears to already be datetime....if it's not, explicitly convert it to datetime.
update...
March 22, 2010 at 8:32 am
i think SELECT COUNT(DISTINCT fieldname) will do what you want:
CREATE TABLE user_registration_tbl
(id int identity,
user_first_name varchar(100) not null,
parentid int not null, ---coresponding ID of parent
Node int not null, ----'0' if member...
March 19, 2010 at 11:03 am
if it HAS to be done in T-SQL, I've written a stored proc which returns the DDL of any table (or treats a view as if it were a table)...
March 19, 2010 at 7:36 am
Viewing 15 posts - 9,826 through 9,840 (of 13,469 total)