Viewing 15 posts - 8,611 through 8,625 (of 8,753 total)
inevercheckthis2002 (4/7/2014)
INSERT INTO visited
VALUES
(N'Home', N'Kim'),
(N'Contact', N'Kim'),
(N'Products', N'Kim'),
(N'Home', N'Joe'),
(N'Contact', N'Joe'),
(N'Home', N'Pam'),
(N'Home', N'Sam'),
(N'Contact', N'Sam'),
(N'Products', N'Sam'),
(N'Home', N'Ray'),
(N'Products', N'Ray),
(N'Home', N'Kim'),
(N'Home', N'Pam'),
(N'Home', N'Sam')
;
(Actually, this did not work, I had to insert each row...
April 7, 2014 at 11:46 am
The nodes() method of the xml datatype makes this straight forward.
😎
DECLARE @X XML
SET @X = '<root>
<production.Categories categoryid="1" categoryname="Beverages" description="Soft drinks, coffees, teas, beers, and ales" />
...
April 6, 2014 at 10:51 pm
Jeff Moden (4/6/2014)
naresh0407 (4/5/2014)
April 6, 2014 at 10:06 am
If you only have few tables to check, do not use sp_MSforeachtable, it executes the statement once for each table in the database, regardless of what ever filtering you use.
The...
April 6, 2014 at 6:43 am
Peter2012 (4/6/2014)
Thanks for your response.
I've checked the given URL and it's not what I'm looking for as it's checking for all tables.
What I want is to check for certain...
April 6, 2014 at 4:38 am
naresh0407 (4/6/2014)
Hi..I am using sqlserver 2008
In Sql Server 2008 the support for multi document type / multi format document files is very limited and some workarounds are needed. Without using...
April 6, 2014 at 3:26 am
lmarkum (4/1/2014)
April 6, 2014 at 12:50 am
What version of SQL Server / SSIS are you using?
April 6, 2014 at 12:14 am
You'll find detailed instructions in this article
Determining space used for each table in a SQL Server database[/url] by: Greg Robidoux
😎
April 5, 2014 at 11:56 pm
Jeff Moden (4/5/2014)
print concat('drop table ',@tablename);I just can't help it. CONCAT seems so much less natural and less obvious and more difficult to read than...
print 'drop table ' +...
April 5, 2014 at 11:31 pm
ankit.oza (4/5/2014)
Thank you so much Guys. But I was wondering what is wrong in my version of code?
The problem is that you cannot pass sql identifiers such as table names...
April 5, 2014 at 4:52 pm
naresh0407 (4/5/2014)
.Just need to validate the filename CLM_20140504..Could you please let me know how can we validate.Today date is 20140504 so the CLM_20140504 is valid file.
Assuming that you have...
April 5, 2014 at 4:28 pm
naresh0407 (4/5/2014)
Can i acheve this without scriptask?
I have one...
April 5, 2014 at 3:49 pm
This code creates a polygon and 200 points (lat/lon) and then selects the points that are inside the polygon
😎
DECLARE @POLIGON geography;
SET @POLIGON = geography::STPolyFromText('POLYGON ((5 5, 10 5, 10...
April 5, 2014 at 3:14 pm
What's next, business holidays and weekends? 😀
Just for the sake of completion:
SELECT Eventdate,Status
INTO #AP_DATA
FROM (VALUES
('2014-01-20 18:00', 0)
,('2014-01-20 18:30', 0)
,('2014-01-20 19:00', 1)
,('2014-01-20 19:30', 0)
,('2014-01-20 20:00', 1)
,('2014-01-20 20:30', 0)
,('2014-01-20 21:00', 0)
,('2014-01-20 21:30',...
April 5, 2014 at 2:14 pm
Viewing 15 posts - 8,611 through 8,625 (of 8,753 total)