Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
A

amfy

@amfy
About
Posts
1
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Import Text File into Sql Server 2000
    A amfy

    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

    Visual Basic question csharp database sql-server
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups