Viewing 15 posts - 5,341 through 5,355 (of 5,504 total)
Hi,
would you please be a little more specific on what you're trying to achieve?
I don't know how your expected result "20090605 Section header+Paragraph+Paragraph+section+Paragraph+Paragraph..." would correlate in any way with your...
June 5, 2009 at 4:16 pm
The reason why I used a "real" temp table is that you cannot use a table variable within a dynamic SQL unless you declare it inside the SQL statement.
Reason:...
June 5, 2009 at 4:11 pm
Hi Tim,
sorry for the mistake in my previous post. I've been typing while thinking, not after...
The following code should work regardless of _KEY value structure.
Side note: If possible, please avoid...
June 5, 2009 at 2:47 pm
Hi Tim,
are the values for _KEY in your real scenario always numbered with prefix (like FIELD1, FIELD2, .., FIELD102)?
If true, there would be a way to get the result without...
June 5, 2009 at 2:20 pm
What do you mean by "tables"? Could you please provide the structure you want to insert the data?
Also, your requirement of "load all the values into a table" seems contradictory...
June 5, 2009 at 11:28 am
Are you sure the provider is installed on your server?
Similar issues have been discussed on different threads before.
You might find a solution at http://www.sqlservercentral.com/Forums/FindPost445277.aspx or http://www.sqlservercentral.com/Forums/FindPost544672.aspx.
June 5, 2009 at 4:53 am
It looks like you're missing two quotation marks:
One at the end of 'Microsoft.ACE.OLEDB.12.0 and one at the beginning of Database=C:\contact.xlsx.
Also, there seems to be a mismatch of commas/semicolons as per...
June 5, 2009 at 4:23 am
The problem is within in your case statement:
The DATEDIFF function returns an integer, so the resulting value of the CASE statement is always an integer as well. So your ELSE...
June 2, 2009 at 12:57 pm
I don't consider myself a tuning expert at all but I recognized a few things:
1) The parameter @p_Regions,@p_States, @p_MetroIds seems to hold comma separate lists. Instead of calling the split...
May 31, 2009 at 7:24 am
Hi Rob,
the structure of the word file -even if it's saved in XML format- wouldn't let you extract the data into SQL Server in a format you'd probably expect or...
May 30, 2009 at 3:10 pm
GSquared (5/29/2009)
May 29, 2009 at 12:32 pm
Conversion to html format usually is done by a frontend application.
What you could look into is XQuery to save the data in XML format.
May 28, 2009 at 12:46 pm
would this solution help (based on one of Lynn's date routines)?
declare @wk int
set @wk =22
select dateadd(wk, datediff(wk, 0, dateadd(dd,(@wk-1)*7,'20090101')), 0)
/* result
2009-05-25 00:00:00.000
*/
May 27, 2009 at 4:03 pm
Lynn Pettis (5/27/2009)
select dateadd(wk, datediff(wk, 0, dateadd(dd, -1, @ThisDate)), 0);
Nice one...
As simple as efficient. 🙂
Thanxalot, Lynn.
May 27, 2009 at 2:40 pm
Hi Lynn,
your date routines are really helpful!
One question though:
When I try "set @ThisDate = '20090524'" I get "2009-05-25 00:00:00.000" as Beginning of this week (Monday) which is "strange" - at...
May 27, 2009 at 1:28 pm
Viewing 15 posts - 5,341 through 5,355 (of 5,504 total)