Viewing 15 posts - 1,531 through 1,545 (of 2,458 total)
First, welcome to SQL Server Central! You'll notice on the homepage that this site is "A Microsoft SQL Server community of 1,800,502 DBAs, developers and SQL Server users". Most of...
-- Itzik Ben-Gan 2001
May 6, 2015 at 7:41 pm
or...
declare @xmldoc as xml
select @xmldoc = REPLACE('<Text>This is firstline<Break />This is second line<Break />This is third line</Text>','<Break />',CHAR(10))
select @xmldoc.value('(/Text)[1]','varchar(max)')
-- Itzik Ben-Gan 2001
May 6, 2015 at 3:59 pm
Ditto what Nevyn said about the DDL. In the meantime, it's worth noting that you don't every need a subquery or CTE with SELECT * FROM <table>.
You could replace...
-- Itzik Ben-Gan 2001
May 6, 2015 at 2:45 pm
crowegreg (5/6/2015)
I haven't tried that yet. Since my test is with a very simple delete query, I wanted to make sure that its not a setting within...
-- Itzik Ben-Gan 2001
May 6, 2015 at 1:09 pm
have you tried creating a stored procedure in SQL Server that does the DELETE for you and then calling it from MS Access?
I have not worked with Access in...
-- Itzik Ben-Gan 2001
May 6, 2015 at 11:45 am
In addition to what everyone else has said...
Someone could explain what thas it´s mean.
On a performance note it means that you're going to get an index scan instead of a...
-- Itzik Ben-Gan 2001
May 6, 2015 at 10:13 am
A few things to consider:
I have inherited a system which has very few tables with indexes. One table has 18K rows, expected to grow to 25K by year end,...
-- Itzik Ben-Gan 2001
May 6, 2015 at 10:01 am
Take a look at this thread:
http://www.sqlservercentral.com/Forums/Topic1678555-3077-2.aspx#bm1679472
-- Itzik Ben-Gan 2001
May 6, 2015 at 9:28 am
For the sake of discussion we'll just say that we want to archive stuff older than three months.
The most basic approach would be to use a stored proc and...
-- Itzik Ben-Gan 2001
May 6, 2015 at 9:15 am
Shawn Melton (5/5/2015)
Alan.B (5/5/2015)
It is worth noting, however, that sp_MSForEachDB is undocumented and you should...
-- Itzik Ben-Gan 2001
May 5, 2015 at 3:08 pm
Erland Sommarskog (5/5/2015)
SELECT
testsuite.c.value('@name', 'nvarchar(20)') as testsuitename,
tescase.c.value('@internalid', 'int')...
-- Itzik Ben-Gan 2001
May 5, 2015 at 3:01 pm
Will read the entire OP moving forward.
-- Itzik Ben-Gan 2001
May 5, 2015 at 2:50 pm
rpetit1230 (5/5/2015)
-- Itzik Ben-Gan 2001
May 5, 2015 at 2:41 pm
Luis Cazares (5/1/2015)
Jeff Moden (5/1/2015)
-- Itzik Ben-Gan 2001
May 1, 2015 at 2:53 pm
w.zia.2015 (4/30/2015)
I'm trying to find an alternative, more efficient way of processing some code to select the top row of a specific order.
At the moment we use...
-- Itzik Ben-Gan 2001
April 30, 2015 at 9:39 am
Viewing 15 posts - 1,531 through 1,545 (of 2,458 total)