How To Look All The Table In A Database In Sqlserver
Feb 27, 2001how to look all the table in a database in sqlserver,
and what are the maintanance jobs that needed to be run either daily or weekly.
K
how to look all the table in a database in sqlserver,
and what are the maintanance jobs that needed to be run either daily or weekly.
K
Hello,I need to copy a table from an 8i oracle database to a sqlserver 2000 database.Is it possible to use the command "COPY FROM ... TO ..." ?So, what is the correct syntax ?Thanks for your helpCyril
View 1 Replies View RelatedHi friends,
I need to retreive data from Excel into SQLSERVER database table
give me reply asap.
Thanks in advance...
Dear all,,
I need your help,,I'm work in website project using ASP.NET,,I have to register the users of this site,, the users are over 200,,so,,I'm thinking in away to save my time,,All the information of these users are stored in Excel file,,What I want to do is to imports these data from the excel file into a table in my database(SQLserver database),,Could you help in coding by VB.NETThanks in advance,,
Is there a way to transfer data from a SqlServer db to a SqlServer Express db. I tried to use the backup file of SqlServer, but this file is not valid for SqlServer Express. Or there any alternatives?
thanks,
Henk
I am trying to 'load' a copy of a SQLServer 2000 database to SQLServer 2005 Express (on another host). The copy was provided by someone else - it came to me as a MDF file only, no LDF file.
I have tried to Attach the database and it fails with a failure to load the LDF. Is there any way to bypass this issue without the LDF or do I have to have that?
The provider of the database says I can create a new database and just point to the MDF as the data source but I can't seem to find a way to do that? I am using SQL Server Management Studio Express.
Thanks!!
Hello,
I have an SQLServer Mobile database, and I would like to know if there is a way to upgrade it to SQLServer 2005 (.mdf) database. My database has no records in it, just the structure (tables etc). What I am actually asking is if I can create automatically a new SQLServer 2005 Database with the same structure as my existin SQLSErver Mobile database
Thanks in advance,
TassosTS
Hi,
I have a complicated sql server mobile database (.sdf) and need to create a SQL SERVER database with the same tables. How can I do it without scripting the whole thing? I thought of using the views.information_schema databases, but it is still a lot of coding.
thanks
Hi!I have a question:I already have a DB that uses partitions to divide data in USCounties, partitioned by state.Can I use TWO levels of partitioning?I mean... 3077 filegroups and 50 partition functions that addressthem, but can I use another function to group the 50 states?Thanks!Piero
View 15 Replies View RelatedI am new to using sqlserver and have been given the task to get the columnname, data type and the description from a given table and put this intoanother table. Can this be done?Thanks in advance.Jeff Magouirk
View 2 Replies View RelatedI am learning dotnet thru Microsoft Official Curriculum and I got stuck up at one point. That is I couldn't configure the required databases according to the sql server I have installed and configured. I created a doctors database and while configuring using the below code I couldn't know what is 'ASPNET' in "SELECT @s = @@servername + 'ASPNET'"
Also what is 'webuser'
---Configure Doctors
USE doctors
GO
DECLARE @s varchar(50)
SELECT @s = @@servername + 'ASPNET'
EXECUTE sp_grantlogin @s
EXECUTE sp_grantdbaccess @s, 'webuser'
GO
GRANT EXECUTE ON [getUniqueCities] TO webuser
GRANT EXECUTE ON [getDrSpecialty] TO webuser
GRANT SELECT ON [specialties] TO webuser
GRANT SELECT ON [doctors] TO webuser
GRANT SELECT ON [drspecialties] TO webuser
GO
Can anyone help me how to solve my problem?
Your help would be very much appreciated
Thanks and Regards
Kavitha
Good Day!
I want to know how to distribute a database in SQL Server from one computer to another?
Thnx!
Kapalic
In SQLserver Admin, ANDONASPNET is setup as a 'Server Admin'
****************************************************************************
Connection string is set in the web.config file.
<configuration>
<connectionStrings>
<add name="SqlServerEx"
connectionString="Data Source=LOCALHOSTSQLEXPRESS;Initial Catalog=DB2;Integrated Security=SSPI;"
providerName="System.Data.SqlClient;"></add>
</connectionStrings>
<appSettings/>
<system.web>
.......................................................................
protected void Button2_Click(object sender, EventArgs e)
{
string connStr = WebConfigurationManager.ConnectionStrings["SqlServerEx"].ConnectionString;
SqlConnection con = new SqlConnection(connStr);
TextBox3.Text = connStr;
try
{
con.Open();
TextBox2.Text = "<b> Server Verison::</b>" + con.ServerVersion;
TextBox2.Text += "<br /><B>Connection Is::</B> " + con.State.ToString();
}
catch (Exception err)
{
TextBox2.Text = "Error reading Database. ";
TextBox2.Text += err.Message;
}
finally
{
con.Close();
TextBox2.Text += "<BR><B>CONNECTION::" + con.State.ToString() + "</B>";
}
}
****************************************************************************
This is the error message I am getting:
"Error reading Database. Instance failure."
I have a products table in a Sql Server 2005 database. One of the fields contains the products attributes in xml. The most commonly used attribute is color. An element of color is inventory. This is the only way I could think of to maintain inventory numbers of each color of each product using someone else's (opensource) code. An example of an attribute field would be <?xml version="1.0"?> <ArrayOfAttribute
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <Attribute>
<Name>Color</Name> <Description>Shown in
Black</Description> <Selections> <AttributeSelection>
<FormattedValue>483 - Black</FormattedValue> <Value>483 -
Black</Value> <Inventory>25</Inventory>
</AttributeSelection> <AttributeSelection> <FormattedValue>484
- Lt. Tan</FormattedValue> <Value>484 - Lt. Tan</Value>
<Inventory>15</Inventory> </AttributeSelection>
<AttributeSelection> <FormattedValue>485 -
Pink</FormattedValue> <Value>485 - Pink</Value>
<Inventory>17</Inventory> </AttributeSelection>
</Selections> <SelectionType>SingleSelection</SelectionType>
</Attribute> </ArrayOfAttribute> How can I read this into the gridview control so that it makes sense to the user?Diane
Hi,
I have a table in my database where I want the Insert/Modify permissions to only administrator or (User X). Remaining users can just read the data. How do I set this in sqlserver 2005 database?
I can right click Table->properties->Permissions and add specific permissions to admin. But how would i deny permisssions to all others? I cannot add each login to deny permissions.
Thanks,
We are looking at developing a new app with a SQL Server db. As such, we're all newbies.
What is the maximum number of columns I can put in a SQL Server table?
Thanks in advance.
Bob Anderson
Hi Foilks , I know it s easy question. I know databases but not SQL dbase. Please explain if you can.
what is "DEPENDENCIES" folder in sqlserver table mean please?
Dosston
I am jus migrating my oracle set up to sql server. I have oracle tables with my own object types. Is there any equivalent in SQL Server tables.
Any advice/suggestions would be gratefully received.
-Sam
Hi All,
I am Currently doveloping a Asp.Net application.
I Need to Use two databases one is Sql server and another one is Oracle.
My Primary database is Sqlserver . But I need to get data from two tables from the oracle database also.
I would like to create the same table in Sqlserver and Update data from oracle (synchronize) automaticaly .
Is there any way to syhcronize these table to get the uptodate data.
What is the best solution to solve this situation.
Please show me example code.
By sqlserver way or .Net way
Please Help me .
Thanks you
M.S
i have the table name is "Books". its contains 10 Rows.... I want select 5,6 rows,or 7,8 not first and last..... Any tell me the Query for that...
Regards,
S.sajan
I want to write a sql Query which retrieves the last (some number ) records form a Table ,
the table specification is like :
Table1
==================================
ID int , <----- is identity And identity seed =1
Title char(50) ,
News nvarchar(100)
its like I want to get the last 5 news form DB ...
I made a website with sqlserver membership
when i migrate the website to another server i can not connect to the database aspnetdb
how i can add a user to this data base in the visual web developer
Thnakis
Hi,
I have a hard time copying my db (or instance?) from a SQL Server 2000 db which resides at my web host. I have Sql Server 2005 Express and Sql Server Management Studio Express on my computer and, well, there is no "ftp-like" option so I don't have a clue about how to proceed. I've read many posts on the net on this matter but nothing seems to apply to this, in my mind, rather common, configuration.
I have receieved Excel docs that should be appended to tables in my db. I have successfully installed DTS (see http://mobiledeveloper.wordpress.com/ for details - it's really simple but takes two hours) so I have a wizard for the actual import from Excel. My plan is now to
1. download/detach/whatever my table/db/part of the web host's db and download it to my computer. Then
2. fill the tables with the data from Excel. And finally, to
3. upload/attach/whatever my local db or table to the web host again.
I'm sooo confused, please, please help me out here!
Pettrer
Hi
I want to change collation_name of my SqlServer Database by running a script. But I don't know how.
Please help me.
Thanks
as the title said
how can I move my sqlserver 2000 database to anthother machine!
How can I insert an Image into a SQLServer database?
View 1 Replies View RelatedHi,
i need to know how to encrypt a field in the sql server database.
I want to hide some text field in a user defined table.
thanks in advance.
regards
mihir
How can i access multiple sqlserver database using VB
eg. insert 1 record in a database from other databse.
I would like to remove data from a sqlserver database but keep the structure the the db. How would I do this?
View 9 Replies View RelatedForgive me if this question is a bit too generic, if it is, feel free tojust not respond.I have a database which has been running in PostgreSQL for a number ofyears at this stage which I want to port into MS SQL server.It seems that the SQL that Postgre outputs when I do a backup is notsyntactically correct within MS-SQL server.My question is, does anyone have any documentation on how to convert adatabase from the Postgre platform to SQL server? Is it possible usingan ODBC connection to import a database structure including tabledefinitions, views etc into SQL Server?Failing this, does anyone have any suggestions on where I might start -I did attempt to go through the SQL code and modify it to suit SQLserver, but it's about 3,500 lines of code excluding the insertstatements (which themselves are also wrong) and almost every line needssomething changed when comparing SQL syntax from Postgre to MSSQL serverThanks in advance for any comments/suggestions.Engada.--Posted via a free Usenet account from http://www.teranews.com
View 1 Replies View RelatedHi;I thought I would rephrase a question I asked in another post to morequickly get to the heart of the matter. My apologies for anyone whois offended by what appears to be a repetition.My company has two identical web sites. One copy is for our customer,and one copy is for us to test our code changes on.We developed a hard to isolate bug in the copy of the web stie for ourcustomers.We believe the bug might be data related.We would like to replace our test database with our productiondatabase to try to reproduce the problem without interrupting ourservice to our customers.The test database and production database have all the same tables andstructures,but the names of the databases are slightly different.We have tried dropping tables from our test database and importingtables from our customer database in Management Studio. We got thedata but the identity fields were turned off as identities. We canmanually turn them back on in Management Studio, but we have severalhundred tables.In the end we just want to the data from our customer db to be in ourtest db with the test db name being the same, and have our identityfields preserved.What is the easiest way to do this?Thanks in advance for anyinformationSteve
View 5 Replies View RelatedHow can I make an .exe file that can insert data automatically in aSQLServer database, I can do it in C, but how can I connect to SQLServerand execute a query.All data that I have to insert are data that I can have from PCenvironment variables.Thanks--Posted via Mailgate.ORG Server - http://www.Mailgate.ORG
View 2 Replies View RelatedIs it possible to deploy SQL Server CE "baked into" a DLL? For example, instead of setting the build option to "Content", can I set it to "Embedded Resource"?