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
  1. Home
  2. Database & SysAdmin
  3. Database
  4. SELECT * INTO OPENDATASOURCE

SELECT * INTO OPENDATASOURCE

Scheduled Pinned Locked Moved Database
databasehelp
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    jojoba2011
    wrote on last edited by
    #1

    <pre lang="sql">SELECT *
    INTO OPENDATASOURCE('SQLNCLI',
    'Data Source=.\sqlexpress;User ID=sa;Password=sa')
    .[fuzzyTest].dbo.tblGroup
    FROM [CMS].[Common].[File];</pre>

    This is not working and giving error !

    I dont wanna to use

    <pre lang="sql">INSERT INTO [CMS].[Common].[File]
    (Name,IdParent,[Desc])
    SELECT [Name],[IdOstan]+30,''
    FROM OPENDATASOURCE(
    'SQLOLEDB',
    'Data Source=.\sqlexpress;User ID=sa;Password=sa'
    ).[fuzzyTest].dbo.tblGroup</pre>

    L 1 Reply Last reply
    0
    • J jojoba2011

      <pre lang="sql">SELECT *
      INTO OPENDATASOURCE('SQLNCLI',
      'Data Source=.\sqlexpress;User ID=sa;Password=sa')
      .[fuzzyTest].dbo.tblGroup
      FROM [CMS].[Common].[File];</pre>

      This is not working and giving error !

      I dont wanna to use

      <pre lang="sql">INSERT INTO [CMS].[Common].[File]
      (Name,IdParent,[Desc])
      SELECT [Name],[IdOstan]+30,''
      FROM OPENDATASOURCE(
      'SQLOLEDB',
      'Data Source=.\sqlexpress;User ID=sa;Password=sa'
      ).[fuzzyTest].dbo.tblGroup</pre>

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      jojoba2011 wrote:

      This is not working and giving error !

      What error? Syntax error?

      jojoba2011 wrote:

      I dont wanna to use

      Why? What's wrong with that?

      Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^]

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

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