Viewing 15 posts - 6,676 through 6,690 (of 15,381 total)
ScottPletcher (9/27/2013)
Neither CAST nor CASE is actually necessary here:SIGN(CHARINDEX('@', <string_value>))
Excellent!!!
September 27, 2013 at 10:25 am
bala2 (9/27/2013)
We have requirement to migrate a database from oracle to sql server 2008 .
What is best method to do the migration?
We are Planing to use SSMA tool for...
September 27, 2013 at 10:24 am
Luis Cazares (9/27/2013)
Sean Lange (9/27/2013)
Luis Cazares (9/27/2013)
September 27, 2013 at 10:21 am
mrea-605474 (9/27/2013)
I have a web...
September 27, 2013 at 10:14 am
Luis Cazares (9/27/2013)
September 27, 2013 at 9:34 am
Jon Higgins (9/27/2013)
I've been asking the same question, but I'm not the developer. I'm looking for a kludge until we can hash this out.
IF the server name is using...
September 27, 2013 at 9:31 am
Jon Higgins (9/27/2013)
I'm dealing with a situation where one of our developers is compiling a component with the connection string to a SQL Server instance included in the compile. ...
September 27, 2013 at 8:58 am
Then EXISTS is a good choice. Another option might be something like this.
DECLARE @order INT = '1'
DECLARE @col INT
SELECT @col = col FROM Orders WHERE NumOrder = @order
IF @col...
September 27, 2013 at 8:50 am
You would call those other procs just like any other (parenthesis are not used in a proc call).
EXEC sp_2_InsertOwnersFromOnboard @StartPoint, @EndPoint
September 27, 2013 at 8:43 am
I would use EXISTS. Using exists looks for the actual row in the table, the @@ROWCOUNT version is examining the results of query to see if the row exists. That...
September 27, 2013 at 8:39 am
You should look up ALTER LOGIN in BOL.
September 27, 2013 at 8:23 am
polkadot (9/26/2013)
September 27, 2013 at 8:16 am
Dwain, I think this should produce the same result?
SELECT field1, field2, field3
FROM table
JOIN dbo.DelimitedSplit8K(@UsersEntry, ',') s ON field1 = s.item
ORDER BY s.ItemNumber;
September 27, 2013 at 8:11 am
Could do this with a case expression also so there is no need to use CAST.
select case when CHARINDEX('%', @Test) > 0 then 1 else 0 end
September 27, 2013 at 8:06 am
Harshad Sanghani (9/26/2013)
you can use PIVOT for the same
The pivot approach certainly works but you might want to read this article. http://www.sqlservercentral.com/articles/T-SQL/63681/%5B/url%5D
It demonstrates that PIVOT can have some performance issues...
September 27, 2013 at 7:53 am
Viewing 15 posts - 6,676 through 6,690 (of 15,381 total)