Click here to Skip to main content
16,006,013 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionGetting a row count from a text file Pin
John Waclawski16-Jul-06 13:02
John Waclawski16-Jul-06 13:02 
AnswerRe: Getting a row count from a text file Pin
Dave Kreskowiak16-Jul-06 15:22
mveDave Kreskowiak16-Jul-06 15:22 
QuestionSearch an array [modified] Pin
crash89316-Jul-06 10:27
crash89316-Jul-06 10:27 
AnswerRe: Search an array Pin
Keith Malwitz16-Jul-06 18:46
Keith Malwitz16-Jul-06 18:46 
GeneralRe: Search an array Pin
crash89317-Jul-06 8:24
crash89317-Jul-06 8:24 
AnswerRe: Search an array Pin
Werries17-Jul-06 8:53
Werries17-Jul-06 8:53 
QuestionImport Text File into Sql Server 2000 Pin
_mubashir16-Jul-06 9:14
_mubashir16-Jul-06 9:14 
AnswerRe: Import Text File into Sql Server 2000 Pin
amfy18-Jul-06 4:34
amfy18-Jul-06 4:34 
hi Mubashir,
its not clear what kind of process would u like to proceed. assuming you want to insert the data into table from file.try using BULK INSERT statement available on sql server2000. If you want to exec a select query stored in a text file there is no straight method to procede. i've manipulated some different approach for that,
assuming you have entere some "select * from Products" in a text file called test.txt. the steps involved are as,

Declare @cmd varchar(100)
Declare @sqlcmd varchar(2000)
set @cmd = 'type e:\test.txt'

CREATE TABLE #temptable (id int identity(1,1), string VARCHAR(4000))
Insert #temptable
exec master..xp_cmdshell @cmd

Declare @Max int, @Min int
select @sqlcmd=string from #temptable
Drop Table #temptable

Exec(@sqlcmd)

stay smart
QuestionOffice-like menu... Pin
Agus Budianto16-Jul-06 4:51
Agus Budianto16-Jul-06 4:51 
AnswerRe: Office-like menu... Pin
The ANZAC16-Jul-06 21:40
The ANZAC16-Jul-06 21:40 
GeneralRe: Office-like menu... Pin
Agus Budianto18-Jul-06 0:15
Agus Budianto18-Jul-06 0:15 
AnswerRe: Office-like menu... Pin
giddy_guitarist16-Jul-06 21:44
giddy_guitarist16-Jul-06 21:44 
AnswerRe: Office-like menu... Pin
Agus Budianto18-Jul-06 0:18
Agus Budianto18-Jul-06 0:18 
QuestionHelp Please Pin
mayoush16-Jul-06 2:27
mayoush16-Jul-06 2:27 
AnswerRe: Help Please Pin
Dave Kreskowiak16-Jul-06 10:40
mveDave Kreskowiak16-Jul-06 10:40 
QuestionFile transfer Pin
mayoush16-Jul-06 1:37
mayoush16-Jul-06 1:37 
AnswerRe: File transfer Pin
Dave Kreskowiak16-Jul-06 2:13
mveDave Kreskowiak16-Jul-06 2:13 
GeneralRe: File transfer Pin
mayoush16-Jul-06 2:30
mayoush16-Jul-06 2:30 
GeneralRe: File transfer Pin
Dave Kreskowiak16-Jul-06 10:41
mveDave Kreskowiak16-Jul-06 10:41 
GeneralRe: File transfer Pin
Dave Kreskowiak16-Jul-06 12:26
mveDave Kreskowiak16-Jul-06 12:26 
GeneralRe: File transfer Pin
mayoush16-Jul-06 21:36
mayoush16-Jul-06 21:36 
Questionmake string to contain quote doubles (") Pin
pedestrian79716-Jul-06 1:11
pedestrian79716-Jul-06 1:11 
AnswerRe: make string to contain quote doubles (") Pin
Dave Kreskowiak16-Jul-06 2:10
mveDave Kreskowiak16-Jul-06 2:10 
GeneralRe: make string to contain quote doubles (") Pin
pedestrian79716-Jul-06 14:47
pedestrian79716-Jul-06 14:47 
QuestionMicrosoft SQLHelper Pin
Chintan Parikh16-Jul-06 0:56
Chintan Parikh16-Jul-06 0:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.