SQL Server Table with data - Sajha Mobile
SAJHA MOBILE
SQL Server Table with data
Posts 5 · Viewed 5675 · 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 1 · Viewed 97
· Posts 3 · Viewed 741 · Likes 2
· Posts 2 · Viewed 206
· Posts 8 · Viewed 815 · Likes 1
· Posts 4 · Viewed 314
· Posts 1 · Viewed 130
· Posts 1 · Viewed 102
· Posts 1 · Viewed 90
· Posts 8 · Viewed 859
· Posts 5 · Viewed 538



Your Banner Here
Travel Partners
Travel House Nepal