[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 750 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
TRUMP 2016!!! Here is why?
~चौतारी १९९~
Mnang, Mustang Treking and Our Engagement
ICE RAID
TPS FEDERAL NOTICE
हामीहरुले २० जना केटिहरुसंग सेक्स गर्नै पर्छ रे नी !
US upcoming recession --- is it good time to buy house when rates are low or is it good time to wait recession?
IT Consultancy Dons and Donts
थुक्क प्रियंका कार्कीजी …
नफर्किने गरि नेपाल जाने सोच
TPS to GC (PERM-I140-I485) TimeLine
TPS ma ghanta hannu paryo re IT matra hamro job bikalpa?
TPS to change of status denied ..Need help
♪♪♪ हामी सबै क्लबमा ♪♪♪
Is QA/BA worth considering a career ??
Salary offer aako cha
"Itiahariko" copied Itahariko username!!!!
लामिछानेको येस्पलीको दसैँ मामाघरमा
Stock ma lagani
filing H1b as gas station attendant
Former U.S. President Bill Clinton in Nepal
~चौतारी १९९~
TRUMP 2016!!! Here is why?
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