Viewing 15 posts - 49,936 through 49,950 (of 59,099 total)
Open a Word document in a text editor like Notepad and let me know if you think a search for any word would actually work...;)
--Jeff Moden
Change is inevitable... Change for the better is not.
June 17, 2008 at 11:12 pm
I suppose you could have someone write a CLR for this particular functionality.
--Jeff Moden
Change is inevitable... Change for the better is not.
June 17, 2008 at 11:10 pm
You could assign them to "owners" other than DBO...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 17, 2008 at 11:07 pm
ola_blixten (6/17/2008)
My case:
I want to generate 5 digit random numbers which should start with:
00001
00002
00003.....
and 2 digit for week so from 1-52
and 1 digit for year, from 0-9
And everyting should be...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 17, 2008 at 11:06 pm
OpenRowSet will not create a new file. It can be used to populate an existing file. Same goes with a text based linked server.
Bulk Insert will certainly do...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 17, 2008 at 11:02 pm
There were also some security enhancements that smack of deprecations... for example... sp_MakeWebTask now requires SA Privs to use...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 17, 2008 at 10:54 pm
You could always store the document(s) in a file and store the file path/name in the database. Kind of a universal solution for all RDBMS's...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 17, 2008 at 10:52 pm
Well... that's a mighty nice gesture. Thanks...
I do have a couple of things to share...
http://www.sqlservercentral.com/Authors/Articles/Jeff_Moden/80567/
--Jeff Moden
Change is inevitable... Change for the better is not.
June 17, 2008 at 10:46 pm
If you were to dump the data into a Temp Table with an IDENTITY column, you're life would get a lot easier on this problem.
--Jeff Moden
Change is inevitable... Change for the better is not.
June 17, 2008 at 10:42 pm
We do the double check thing for every piece of SQL that hits the database in the form of Peer Reviews. It's prevented a good number of "accidents" before...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 17, 2008 at 10:38 pm
Heh... Denial is a good word for this... 😀 I've seen lot's of folks try to make test data this way... Cross Join would suit better for that.
--Jeff Moden
Change is inevitable... Change for the better is not.
June 17, 2008 at 10:27 pm
Sergiy (6/17/2008)
Here's one of my favorites to go along with that...
declare @A decimal(3,0), @B decimal(18,0),@F FLOAT
SET @A = 3
SET @B = 3
SET @F = 3
SELECT 1/@A*3.0, 1/@B*3.0,1/@F*3.0
SELECT 1/@A*3, 1/@B*3,1/@F*3
--Jeff Moden
Change is inevitable... Change for the better is not.
June 17, 2008 at 10:16 pm
Heh... I've got 100 PM's that I really want to keep... and Steve hasn't developed a way for me to download them, yet and I've been too busy to think...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 17, 2008 at 9:24 pm
Oh yeah... I forgot the "other part"... Dirtree...
Lots of people know that Dirtree can take 2 parameters... one for Directory and 1 for how many levels deep to go... Very...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 17, 2008 at 9:02 pm
Found 'em...
SELECT *
FROM OPENROWSET('Microsoft.Jet.OLEDB.4.0',
'Excel 8.0;Database=C:\Temp\OpenRowSetTest2.xls;HDR=yes',
'SELECT * FROM [Sheet1$a4:c]')
SELECT *
FROM OPENROWSET('Microsoft.Jet.OLEDB.4.0',
'Excel 8.0;Database=C:\Temp\OpenRowSetTest2.xls;HDR=Yes',
'SELECT LastName,FirstName FROM [Sheet1$a4:c]')
... and I've attached the example spreadsheet I used in the...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 17, 2008 at 8:56 pm
Viewing 15 posts - 49,936 through 49,950 (of 59,099 total)