RSS
 

Archive for July, 2010

Generate sql script with data from database

07 Jul

How can we copy data as well the structure and schema as sql query? We need database publishing wizard for that.

Download the database publishing wizard and install it.

It will be installed at following location : C:\Program Files\Microsoft SQL Server\90\Tools\Publishing\

run the exe and you can get the sql file with all the data, schema and structure of the database you select.

 
 

Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that configuration specifies the same

02 Jul

When this error comes, put enableViewStateMac=”false” in the tag either in the web.config or in the page where you get this error.