|
it contains following data.
SMID Data_Value
1 2500
2 3500
3 5000
4 10000
5 15000
6 20000
kiran banker
|
|
|
|
|
HI,
I am doing a project (.net) in which i have added a folder named data and added a ms access database mdb file to it ..........
So when ever i am running my project a copy of data folder is getting stored in the
debug folder and the updates and manipulations which i am doing are getting reflected in the database which is present in the debug folder
and at the time or retrieving data is coming from the data folder which i created
So please tell me a way such that the mdb file must be at a single place
regards
sindhu tiwari
its me sid
|
|
|
|
|
I designed a report in Sql Server 2005 express edition with windows authentication mode and build it. In building no errors. While deploying report it is asking for username & password.
I deployed manually by using URL http://localhost/reportserver
report was deployed but in report viewer in asp.net webform, it is giving error message that Page not found
Prasanna
|
|
|
|
|
need some help here some error appears when i am tryin to run my software
the error is:
"An error has occured while establishing a connection to the server when connection to SQL Server 2005 this failure maybe caused by the fact that under the default setting SQL does not allow remote connections.(provider:Named Pipes provider, error 40-could not open a connection to SQL server)".
|
|
|
|
|
Use SQL Server Service Area Configuration Manager to allow remote connections. Also allow both TCP/IP and Named Pipes protocols. That should solve your problem.
|
|
|
|
|
help plz
where do i find Authonication mode in sql server 2005
coz my configuration is set to windows Authonication and i want to change it into mixed
|
|
|
|
|
Open management studio, right click on the server and properties. Then under security you can change it to mixed mode.
|
|
|
|
|
In SQL Server Management Studio Object Explorer, right-click the server, and then click Properties.
On the Security page, under Server authentication, select the new server authentication mode, and then click OK.
In the SQL Server Management Studio dialog box, click OK, to acknowledge the need to restart SQL Server.
Make sure you restart the server. and remember "If Windows Authentication mode is selected during installation, the sa login is disabled. If you later change authentication mode to SQL Server and Windows Authentication mode, the sa login remains disabled. To enable the sa login, use the ALTER LOGIN statement."
Cheers
Ghazi
/*
Ghazi Hadi Al Wadi, PMP, ASQ SSGB, DBA
*/
|
|
|
|
|
HI
My Aim is to get the column names of a access database table and store it to a
combobox using C#.net if any one knows the query or any clue please let me know
regards
sindhu tiwari
INNOVATIVE
|
|
|
|
|
string connectionString;
OleDbConnection connection = new OleDbConnection();
OleDbDataAdapter dataAdapter;
DataSet dataSet = new DataSet();
public Form1()
{
InitializeComponent();
}
public void openConnection()
{
try
{
connectionString = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=C:\\Test.mdb";
connection.ConnectionString = connectionString;
connection.Open();
}
catch (Exception e)
{
MessageBox.Show(e.ToString());
}
}
public void closeConnection()
{
try
{
if (connection.State != 0)
{
connection.Close();
}
}
catch (Exception e)
{
MessageBox.Show(e.ToString());
}
}
public void fillDataset(string query, DataSet dataSet)
{
openConnection();
dataAdapter = new OleDbDataAdapter(query, connection);
dataAdapter.Fill(dataSet, "ColumnNames");
closeConnection();
}
public void fillComboBox()
{
string strQuery = "Select * From Table1";
fillDataset(strQuery, dataSet);
foreach (DataColumn dataColumn in dataSet.Tables[0].Columns)
{
cmbColumnNames.Items.Add(dataColumn.ColumnName);
}
}
private void Form1_Load(object sender, EventArgs e)
{
fillComboBox();
}
|
|
|
|
|
Why have you posted this question? The link I sent you in response to your previous question also explained how to get a list of fields for an Access table.
You should learn to search Google for answers to your questions before posting. Otherwise it looks like you can't be bothered to search for a solution to your problem yourself.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
you can use the following query in your code ...
SELECT column_name FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'name_of_the_table'
Mitesh Darji
|
|
|
|
|
hi,
My aim is to get the table names through query ,,database is ms access
if any one knows code for getting the table names please let me know
regards
sindhu tiwari
its me sid
|
|
|
|
|
Look what happened when I tried searching Google[^] for an answer.
Did you try to do this?
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
Thank u very Much..................
sindhu tiwari
its me sid
|
|
|
|
|
string connectionString;
OleDbConnection connection = new OleDbConnection();
OleDbDataAdapter dataAdapter;
DataTable schemaTable = new DataTable();
public Form1()
{
InitializeComponent();
}
public void openConnection()
{
try
{
connectionString = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=C:\\Test.mdb";
connection.ConnectionString = connectionString;
connection.Open();
}
catch (Exception e)
{
MessageBox.Show(e.ToString());
}
}
public void closeConnection()
{
try
{
if (connection.State != 0)
{
connection.Close();
}
}
catch (Exception e)
{
MessageBox.Show(e.ToString());
}
}
public void getTables()
{
openConnection();
schemaTable = connection.GetOleDbSchemaTable(OleDbSchemaGuid.Tables, new object[] { null, null, null, "TABLE" });
closeConnection();
}
public void fillComboBox()
{
getTables();
for (int i = 0; i < schemaTable.Rows.Count; i++ )
{
cmbColumnNames.Items.Add(schemaTable.Rows[i]["Table_Name"].ToString());
}
}
private void Form1_Load(object sender, EventArgs e)
{
fillComboBox();
}
|
|
|
|
|
how to truncate a sql server link table from access.
what i thought access does not support truncate table statement.
if it is so, is there any other alternative through pass through queries?
|
|
|
|
|
nicetohaveyou wrote: what i thought access does not support truncate table statement.
Correct.
nicetohaveyou wrote: if it is so, is there any other alternative through pass through queries?
Use a TRUNCATE TABLE statement.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
how to find the last updated row in a table
ganeshRV
|
|
|
|
|
As per my knowledge you can not.
You have to take one column for datetime to set system datetime and you can easily find out last updated record.
bEst rEgard
pAthan
please don't forget to vote on the post that helped you.
|
|
|
|
|
How to call one user control from another in DotNet Nuke?
sandip chandra
|
|
|
|
|
sandipchandra17@gmail.com wrote: How to call one user control from another in DotNet Nuke?
Aren't they providing developer support?
Regards - J O H N -
|
|
|
|
|
Don't cross post. You asked this same question in another forum.
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
How to integrate a asp.net website in dot net nuke?
sandip chandra
|
|
|
|
|
sandipchandra17@gmail.com wrote: How to integrate a asp.net website in dot net nuke?
Is this question anyway related to SQL? Am I missing something?
Regards - J O H N -
|
|
|
|