Viewing 15 posts - 196 through 210 (of 422 total)
Sean Lange (4/2/2013)
April 2, 2013 at 10:54 am
As you inferred, I needed to use dynamic SQL to get the results you want. From your example I wasn't able to get the XML nodes and your tables to...
April 1, 2013 at 12:14 am
i'm afraid this task isn't as easy as it may sound. The difficulty comes from the complexity of credit card number formulation. Now let's assume we just want to find...
March 30, 2013 at 6:24 pm
Here's another solution. Entirely set based and no rounding approximations. Returns the current, previous, and cumulative discount for each row in the source table.
IF OBJECT_ID('tempdb..#TestData') IS NOT NULL
DROP TABLE #TestData
;WITH...
March 26, 2013 at 1:53 pm
Here's two procedures I use for very thorough data validation. These procedures are much more reliable than ISDATE because ISDATE may return different results when converting from a string depending...
March 26, 2013 at 9:58 am
This sounds like something better handled at the application level. An application like DotNetNuke (which is free BTW) is well-developed for securely handling individual or group roles. Then if any...
March 26, 2013 at 9:01 am
Sen1 (3/26/2013)
I need to encrypt 4 col. in sql server 2008 and decrypt again. Do I have to do one column at a time or all together, if somebody...
March 26, 2013 at 8:49 am
Jeff Moden (3/24/2013)
Steven Willis (3/24/2013)
March 24, 2013 at 6:17 pm
I'm in the middle of an archiving project right now. The customer has a single database instance on a shared server with a major host and isn't running enterprise edition...
March 24, 2013 at 11:56 am
Try this procedure. You may have to make some modifications to fit your XML structure. And what you do with the output is up to you.
CREATE PROCEDURE dbo.ParseXML
...
March 23, 2013 at 12:59 am
DECLARE
@strXML NVARCHAR(4000)
,@XML XML
IF OBJECT_ID('tempdb..#Sub') IS NOT NULL
DROP TABLE #Sub
IF OBJECT_ID('tempdb..#Contact') IS NOT NULL
DROP TABLE #Contact
CREATE TABLE #Sub (
...
March 22, 2013 at 3:00 pm
Mickey...that sure beats my solution by a mile. I don't know why I didn't split the data into columns right from the beginning instead of trying to parse the strings...
March 14, 2013 at 1:52 pm
Does this return anything?
IF OBJECT_ID ( N'msdb.dbo.dbm_monitor_data', N'U' ) IS NULL
SELECT 'No data'
ELSE
SELECT * FROM msdb.dbo.dbm_monitor_data
or this?
SELECT
...
March 14, 2013 at 6:24 am
[EDIT: Mickey's solution in a post below is MUCH better. Even though this solution "worked," it's admittedly convoluted. Mickey's method also avoids use of a cursor which is almost always...
March 14, 2013 at 5:48 am
Viewing 15 posts - 196 through 210 (of 422 total)