Viewing 15 posts - 7,486 through 7,500 (of 8,731 total)
Something like this?
name LIKE '[a-z][a-z][a-z]%'
Nevermind, I missed something.
November 7, 2013 at 11:45 am
Now I'm lost, I thought you just wanted to improve the query that ccame after "--Derive list of tables which contain all three column". Now I'm not sure what you're...
November 7, 2013 at 11:13 am
What about using INFORMATION_SCHEMA.COLUMNS view? it will give you the names of columns and tables.
Another option would be to use OBJECT_NAME() instead of querying sys.tables. 😉
November 7, 2013 at 11:02 am
steven.ensslen (11/6/2013)
November 6, 2013 at 12:51 pm
Maybe something like this could perform better, based on the following article:
http://www.sqlservercentral.com/articles/T-SQL/91724/
CREATE FUNCTION [dbo].[DateFormattedByMask]
(
@InputDate DATETIME,
@Mask NVARCHAR(80)
)
RETURNS TABLE...
November 6, 2013 at 12:06 pm
Check this article, as it might help you to improve performance.
http://sqlinthewild.co.za/index.php/2009/03/19/catch-all-queries/
November 6, 2013 at 10:39 am
It doesn't matter where the DTS is saved, because the connections aren't changed to the prod server.
What are you afraid of?
November 6, 2013 at 8:52 am
CONVERT won't help with the string as is. You need to format it a little bit.
WITH SampleData( cid,eid,checktime,status,bid) AS(
SELECT 1,'25850','201310311133','01','2' UNION ALL SELECT
1,'17018','201310311135','01','2' UNION ALL SELECT
1,'25850','201310311137','01','2')
SELECT cid,
eid,
CONVERT( datetime, STUFF( STUFF(checktime,...
November 6, 2013 at 8:20 am
Tej_7342 (11/5/2013)
November 5, 2013 at 1:37 pm
Please don't send private messages, you limit the help you can get.
Tej_7342 (11/5/2013)
November 5, 2013 at 1:06 pm
What's the output you're getting? There are millions of reasons, but the error messages can help us to identify what's happening.
November 5, 2013 at 12:53 pm
Something like this might work, but you should test the correct numbers depending on your server.
DECLARE @i int = 1
WHILE @i > 0 ...
November 5, 2013 at 12:46 pm
Be careful on using recursive CTEs to count as you did. Those won't perform fine and might be worse than a cursor as stated on this article: http://www.sqlservercentral.com/articles/T-SQL/74118/
Another point is...
November 5, 2013 at 9:50 am
Why do you want a loop if you can do a very easy update without even needing a CASE?
UPDATE tmp_MT_SE_Upload
SET page21.serial = T.SERIAL + (Row_ID - 1)
FROM (SELECT TOP 1...
November 4, 2013 at 8:40 am
Viewing 15 posts - 7,486 through 7,500 (of 8,731 total)