Forum Replies Created

Viewing 10 posts - 31 through 40 (of 40 total)

  • RE: Do I need to fill a dataAdapter before inserting new records

    David,

    I assume that you are using untyped DataSets.  This being the case I would think that a Select Statement would be needed to generate the appropriate structure.

     

    There is another type...

  • RE: Do I need to fill a dataAdapter before inserting new records

    David,

    I assume that you are using untyped DataSets.  This being the case I would think that a Select Statement would be needed to generate the appropriate structure.

     

    There is another type...

  • RE: Do I need to fill a dataAdapter before inserting new records

    David,

    It is the DataSet that holds the data.  There is no requirement to have a select command associated with a DataAdapter.  If you only want it to insert data just...

  • RE: Deleting all records produces error

    David,

    Place the code in a try... catch block and extract the error message

    e.g

    try{

       YourStuff();

    catch(Exception ex){

       MessageBox.Show(ex.Message);

    }

    This will give you a better idea of what is happening.

    regards

    Shaun

  • RE: Are dataAdapters needed for each table or for each SQLCommand

    Hi Ross & David,

    The prefix to avoid is actually 'sp_' because as you say SQL Server will look in the Master db first and therefore slow things down.

    A good point!

    regards

    Shaun

  • RE: Are dataAdapters needed for each table or for each SQLCommand

    Hi David,

    Do you specifically need to use DataAdapters.  If not consider using a Connection object and a command object to execute stored procedures

    e:g

    SqlConnection cnn = new SqlConnection("Connection String");

    SqlCommand cmd =...

  • RE: Access denied..........global.asax

    In the web.config file you need to have this entry.  As the comment says, the run-time will now permit access to a non trusted server

    <!-- Allows log...

  • RE: Help I''''ve been an Idiot

    Attaching a database does not automatically update users and permissions within the server.  You will have to recreate your logins and their permissions in the new server.  I believe that this will solve your problem.

    Hope...

  • RE: more than 1 dataset per page

    I think your best bet would be to execute stored procedures returning parameters and simply assign the output parameters to the appropriate controls.

    eg Open the database, execute the stored procedures, close...

  • RE: Link access to SQL server

    Hi,

    I have tried a couple of methods and both have worked for me

    the stored procedure sp_addlinkedserver.  This creates a linked server, which allows access to queries against the selected data source. ...

Viewing 10 posts - 31 through 40 (of 40 total)