SQL Server Table with data - Sajha Mobile
SAJHA MOBILE
SQL Server Table with data
Posts 5 · Viewed 5715 · Go to Last Post
neo-reactive-poet
· Snapshot 61
Like · Likedby · 0
SELECT * FROM TABLENAME
That will give you data. lol
smtzac
· Snapshot 288
Like · Liked by · 0
Right click on the Database, go to Generate skript, inside 'advanced' ( I believe) it says 'schema' and 'Schema and Data' select 'Schema and Data' one.
Or 
SELECT *
INTO newtable (it will create a new table)
FROM tableName (you want to create a table using this table data)

Hope it helps.




Last edited: 27-Jul-19 08:35 AM
phone
· Snapshot 438
Like · Liked by · 0
Hello smtzac,
Thank you for your reply.
Is there a query to generate a query as an alternative by going into the database>tasks>generate skript.......?

Thank you.
Last edited: 28-Jul-19 01:23 PM
smtzac
· Snapshot 449
Like · Liked by · 0
No, I don't believe so.
Last edited: 28-Jul-19 09:22 AM
Jhilke_Bro
· Snapshot 543
Like · Liked by · 0
Copy the result set from the following query and patch with INSERT INTO dbo.DestinationTable(ColumnA,ColumnB)
SELECT 'SELECT '+ ''+ColumnA+''+','+''+ColumnB+''+' UNION ALL'
FROM dbo.TableName

Please log in to reply to this post

You can also log in using your Facebook
View in Desktop
What people are reading
You might like these other discussions...
· Posts 5 · Viewed 524
· Posts 1 · Viewed 90
· Posts 1 · Viewed 56
· Posts 5 · Viewed 2404
· Posts 72 · Viewed 16033 · Likes 15
· Posts 1 · Viewed 146
· Posts 1 · Viewed 128
· Posts 16 · Viewed 2489 · Likes 3
· Posts 1 · Viewed 164
· Posts 1 · Viewed 147



Your Banner Here
Travel Partners
Travel House Nepal