[Show all top banners]

neo-reactive-poet
Replies to this thread:

More by neo-reactive-poet
What people are reading
Subscribers
:: Subscribe
Back to: Kurakani General Discussion Refresh page to view new replies
 SQL Server Table with data
[VIEWED 2058 TIMES]
SAVE! for ease of future access.
Posted on 07-25-19 9:55 PM     [Snapshot: 61]     Reply [Subscribe]
Login in to Rate this Post:     0       ?        
 

SELECT * FROM TABLENAME
That will give you data. lol
 
Posted on 07-27-19 8:29 AM     [Snapshot: 288]     Reply [Subscribe]
Login in to Rate this Post:     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

 
Posted on 07-28-19 8:41 AM     [Snapshot: 438]     Reply [Subscribe]
Login in to Rate this Post:     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

 
Posted on 07-28-19 9:16 AM     [Snapshot: 449]     Reply [Subscribe]
Login in to Rate this Post:     0       ?        
 

No, I don't believe so.
Last edited: 28-Jul-19 09:22 AM

 
Posted on 07-29-19 11:00 AM     [Snapshot: 543]     Reply [Subscribe]
Login in to Rate this Post:     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 be able to reply! If you don't have a login, please register here.

YOU CAN ALSO



IN ORDER TO POST!




Within last 60 days
Recommended Popular Threads Controvertial Threads
What stocks to buy -- Any recommendation
which stock to buy
Buying land in kathmandu
प्रियंका कार्की फोटो अबलम भाग २ , ३ जून २०१६ copyright @पुन्टर
##केटा हो ,*Monthly* कती *SAVE* हुन्छ ? ##
हाकिमनी संग- आज सुक्रबार -३
1 Dollar= Rs 60 soon?
Nepali Entrepreneurs in USA
Sajha user you want to meet in person !!
tesla stock OMG !!
TPS to change of status denied ..Need help
❤️ चिक्नी चमेली ❤️
Dr. Fauci न टोक्नु न बोक्नु भएको छ ट्रुम्पलाई
प्ब्जी गेमप्ले
आयाहूआस्का
ट्रंप २०२०
Sajha Chat
Yo IT le dimag kharab garisakyo..
साम्राज्ञीले दुर्ब्यबहार भयो, भन्दा भुवन केसिलाइ किन रिस उठ्यो ??
WHERE IS NAS BRO?
NOTE: The opinions here represent the opinions of the individual posters, and not of Sajha.com. It is not possible for sajha.com to monitor all the postings, since sajha.com merely seeks to provide a cyber location for discussing ideas and concerns related to Nepal and the Nepalis. Please send an email to admin@sajha.com using a valid email address if you want any posting to be considered for deletion. Your request will be handled on a one to one basis. Sajha.com is a service please don't abuse it. - Thanks.

Sajha.com Privacy Policy

Like us in Facebook!

↑ Back to Top
free counters