Viewing 15 posts - 6,586 through 6,600 (of 7,164 total)
forsqlserver (4/20/2011)
Msg 15406, Level 16, State 1, Line 1
Cannot execute as the server principal because...
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
April 20, 2011 at 11:38 pm
Yin Halen (4/20/2011)
Thanks for the reply. I was able to use the openrowset with Microsoft.Jet.OLEDB.4.0
SELECT * FROM OPENDATASOURCE('Microsoft.Jet.OLEDB.4.0','Data Source=C:\DevWork\example_ss.xls;Extended Properties=Excel 8.0')...[Sheet1$]
Not sure if it matters but I...
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
April 20, 2011 at 11:06 pm
Here is what worked for me...
1. Install the latest ACE provider then restart the SQL Server service: http://www.microsoft.com/downloads/en/details.aspx?FamilyID=C06B8369-60DD-4B64-A44B-84B371EDE16D&displaylang=en
2. Then modify some setting on the provider in SQL Server:
USE [master]
GO...
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
April 20, 2011 at 10:17 pm
I'm wondering if OPENROWSET would do the trick. Does the spreadsheet contain sensitive info? Could you attach it to this thread?
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
April 20, 2011 at 9:33 pm
See if this article is relevant to your situation:
http://support.microsoft.com/kb/918040
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
April 20, 2011 at 6:36 pm
That's a good question...I do not have much experience using with UNSAFE assemblies. I am wondering whether SQL Server treats them different somehow.
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
April 20, 2011 at 5:11 pm
I just got around to trying the new Office 2010 drivers, albeit the 32-bit ones. I don't have a 64-bit sandbox available to me at the moment.
I was able to...
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
April 20, 2011 at 5:07 pm
Craig Farrell (4/20/2011)
The trick is to convert to VARBINARY in the middle with the style: 1
Here's some sample code:
DECLARE @hexStr VARCHAR(20),
@hexBin varBINARY(20)
SET @hexStr...
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
April 20, 2011 at 4:29 pm
You can do it using OPENROWSET BULK instead of BULK INSERT and still use the same format file you already created. Here is a proof of concept that works on...
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
April 20, 2011 at 4:12 pm
With a UDF such as the one in this article...
http://sqlblog.com/blogs/peter_debetta/archive/2007/03/09/t-sql-convert-hex-string-to-varbinary.aspx **
...you can then do stuff like this:
SELECT CAST(dbo.HexStrToVarBin('0x80074e21') AS BIGINT) ;
** Note that I am not vouching for this...
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
April 20, 2011 at 3:58 pm
HowardW (4/19/2011)
64 bit systems can address 2^64 bytes of memory, but as this is hugely above any likely...
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
April 20, 2011 at 3:00 pm
Technically you do not need the DLL at all, even in the first place. When you build and deploy a SQL CLR project from Visual Studio the assembly is serialized...
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
April 20, 2011 at 2:50 pm
I agree, but I would choose to use ORIGINAL_LOGIN() instead of SUSER_SNAME() to provide for cases when impersonation is employed.
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
April 20, 2011 at 2:35 pm
A cross-tab query should do what you need, PIVOT will too, although cross-tabs are generally accepted as the better performer. Here is a great article explaining and comparing the two:...
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
April 20, 2011 at 2:25 pm
Grant Fritchey (4/20/2011)
Stefan Krzywicki (4/20/2011)
opc.three (4/20/2011)
Stefan Krzywicki (4/20/2011)
There are no special teachers of virtue, because virtue is taught by the whole community.
--Plato
April 20, 2011 at 2:14 pm
Viewing 15 posts - 6,586 through 6,600 (of 7,164 total)