Hi,
I need to read blob varbinary(max) data using TSQL.
To illustrate this, you can create a table and insert a blob document (c:\King.doc) within it using the following code:
Create table document
(DocumentID int not null primary key identity(1,1),
DocName varchar(255),
[FileExtension]...
I had a SQL coding question and wondered if anyone can help.
We have hundreds of csv files in a folder with names like “CP1.txt”, “CP2.txt”, “CP3.txt” etc.
The files represent code tables and each contains just two “|” separated columns like:
1|Person
2|Marked for deletion
3|Use instead
I...
Hi All,
I am setting up P2P replication for a high latency environment.
I have noticed that the bandwidth between Distribution and Subscriber servers maxes out at 1MBit per second (our network bandwidth is 100MBit per second).
Does anyone know where this limitation is being enforced and what...
I installed SQL on a machine that had a date of May 2003.
I later corrected the date but now sql won't start, saying that evaluation period has expired.
I have tried to put the date back to 2003 but no joy.
Is there a way to extend without re-install?
I'm running Win XP SP2.
Thanks
TK
Hi,
I needed to store formatted character based data in sql server 2005 fields.
Text that contains:
• carriage returns
• bold
• italics
• bullet points
• etc.
Any ideas on how to do this.
All help is appreciated.
Regards
TK
Hi,
I need to know how to pivot (This may not be the correct term) the resultset of a query.
EG. When I run:
use pubs
select au_lname, au_fname, city
from authors where au_lname in ('white','green')
I get the followig resultset:
au_lname au_fname city
Green Marjorie Oakland
White...
OK. What version is your SQL Server?
Have you tried detach and attach. Attach can 'sometimes' create the missing log file.
You can also put the database in 'emergency mode' to bring it back up without the TL (it will create a new TL).
http://www.devx.com/vb2themax/Tip/18624
Let me know how you...
Hi,
I have exactly the same issue, except using SQL 2005 backups.
I backup a db on server1 and verify. It's fine.
I copy to usb external drive and copy to server2, and its now 'corrupted'.
This happens the other way to too. ie. from server2 to usb drive to server1.
The file has same size and...
Hi,
I need to run something like:
UPDATE tblDirectDebitInst
SET tblDirectDebitInst.[Next Processing date]=#5/22/2007#
FROM tblMembers INNER JOIN (tblDirectDebits INNER JOIN tblDirectDebitInst ON tblDirectDebits.fklddid = tblDirectDebitInst.ddidno) ON (tblMembers.[Id No] = tblDirectDebits.[Id...
Hi,
Open up Visual Studio, start a new project/solution, with SSIS as type.
Then right click, SSIS Packages and choose 'add existing package'.
Navigate to the .dtsx file and add it.
You can modify it.
Hope it helps.
Regards
TK
Hi,
In Visual Studio, under ToolBox - Data Flow Transformations, add a DAta Conversion item in between the Source and Destination items.
You can then convert each column to another datatype.
Then, in the destination, see Mappings, in there you can choose the input fields (original - unchanged...
Alex,
I had already tried this before and it did not work.
In any case, as I said I can find other ways around it but I wanted to get to the bottom of this. Thanks.
George,
The first server is SQL 2000 and the Linked Server is 2005.
select @@version --SQL 2000
Microsoft SQL Server 2000 -...
Hi All,
I have a strange issue.
In a distributed query (see below)
SELECT c.dtepublished
FROM its.dbo.internetinspection a
LEFT OUTER JOIN [ITS].[dbo].[itsimsinspectionxref] b
ON a.Insp_no=b.Insp_no
LEFT OUTER JOIN LSD1HQ.[IMS2000_database].[dbo].[tblInspection] c
ON...
Hi,
After a SQL 2005 install on a Win 2003 cluster, I can see several tasks in Scheduled Tasks on each node called "SqlNodeInstall", "SqlNodeInstall_1", "SqlNodeInstall_2" etc. They do not have a schedule so are probably not causing any issues but still I would like a clean system.
My question...
Hi,
In SQL 2000 if you ran:
SELECT * FROM SYSOBJECTS WHERE TYPE='P'
It returned the stored procedures.
But in SQL 2005, this will return all the system stored procedures too.
I used the Profiler to capture the query that Mgmt Studio uses. This a cut down version of it:
SELECT sp.name AS...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.