Viewing 15 posts - 12,076 through 12,090 (of 13,469 total)
sorry...once your table #temp exists, i\BULK INSERT inserts into all columns....you can't identify the columns.
it should be this:
[font="Courier New"]BULK INSERT #temp1 FROM 'c:elson.txt'
WITH
(
DATAFILETYPE = 'char',
FIELDTERMINATOR =...
August 5, 2008 at 7:35 am
this example may be much more than you need.
This is very fast.
in my case, I had thousands of .txt files, all the same format.
they were distributed in 4 folders.
Each file...
August 5, 2008 at 6:52 am
Maybe you mean something like this?
this updates a table, and uses a SELECT to pull in relevant data from a select statement?
[font="Courier New"]
UPDATE SomeTable
SET SomeTable.BudgetAmount = X.BudgetAmount
FROM
(
SELECT ID,SUM(AMT)...
August 5, 2008 at 6:38 am
the issue is permissions, i'm pretty sure.
it doesn't matter which user you are logging into SQL server, whether domain admin,sa, or anyone else.
it's when you try to access services or...
August 4, 2008 at 11:34 am
I tried this and added acouple of different things, like timeouts and Content-Length to the headers...it made no difference...depending on the url it either failed witha 404, or the same...
August 4, 2008 at 11:22 am
I've had this snippet for a while, which i thought gets the number of processors on the server. this is the physical number of processors, and not whether they are...
August 1, 2008 at 8:21 am
awesome example michaela;
Still dealing with too much SQL 2000 here, and i wanted a nice working example to explore the new DDL trigger abilities.
I was able to read it,...
July 25, 2008 at 10:59 am
I had created a search proc I called "uglysearch", that found every varchar/char column, in every table, and searched for a specific string. similar to what you are doing, but...
July 25, 2008 at 9:58 am
i think this is just a result of spaces in the path/filename, right?
changing this part should work i think:
SET @folder = 'C:\Inetpub\wwwroot\Pergamum\Doc\International Banking\Caribbean'
SET @path =SUBSTRING(@folder ,...
July 25, 2008 at 7:41 am
sounds like you want the results of sp_who in a view for example?
simply sp_helptext sp_XXX, and read the code....maybe you can simply lift the code, or maybe you can convert...
July 22, 2008 at 11:19 am
you could also attach the spreadsheet as a linked server, and then select from it as well;
here's an example, which adds the linked server "MySpreadSheet", just change the path and...
July 21, 2008 at 11:35 am
it sounds like you are doing everything right...
here's a basic example of a select into:
select top 5 * into #Table1 from sysobjects
Select * from [#Table1]
that works fine on my...
July 21, 2008 at 9:54 am
doc_sewell (7/10/2008)
" select *from t where id...
July 11, 2008 at 5:37 am
I'm pretty sure that error 2147217873 is a foreign key violation;
ie
Error Code : -2147217873
INSERT statement conflicted with COLUMN FOREIGN KEY constraint 'FK_ForeignKeyName'. The conflict occurred in database 'DatabaseName',...
June 24, 2008 at 11:12 am
As you already suspected, In SQL2000, there's not much you can do.
If all your databases have the database recovery model set to "FULL" instead of "SIMPLE", you could use a...
June 24, 2008 at 11:08 am
Viewing 15 posts - 12,076 through 12,090 (of 13,469 total)