DataSource Controls :: Using Data In Database?
Feb 20, 2010
Time in database e.g in about 5minutes ago, in about 30minutes ago, in about 1hr 20 minutes ago, which types of shema is used to create this data in database. i mean i want to create a time that will always show in this format.
View 1 Replies
Similar Messages:
Mar 2, 2010
I'm trying to figure out if it's possible to transfer records from SQL central database (who has a public IP address) into SQL local database (who doesn't have a public IP)?
or if it's not possible can I use a centralized website instead to pass some data into the local website? (but i'm not sure if it will have some security concerns)..
View 3 Replies
May 30, 2010
i would like to ask about how to sync data from client sybase database import to our sql server database regularly(set time to sync everyday) by create a file in our sql server database
View 1 Replies
Jun 22, 2010
I use VB.net and use sql database. My database' name is database.mdf. I create one button and one textbox controls. When put some words in the textbox and click button, the words will recorded in to database.mdf. How can I do it? If I put a paragraph of sentence maybe 1000 words, is it also ok?
View 1 Replies
Jun 8, 2010
I'm sure this is very trivial but I'm trying to create anchor tags based on data in a database. Here is a my code.
[Code]....
View 6 Replies
Jun 3, 2010
new to this forum, and visual studio web development. Here is what I want to do: -From a webpage on my website, I would like to upload multiple photos to an sql database, but instead of having a container or field name for each photo, i would like to have multiple photos on one field, on each record.Then, I would like to display it back one record at a time, but with the capability of displaying all the pics from the one field holding the pics. Similar to the function in MS Access, where I can upload mutiple photos in one field and then display them back by just scrolling through them on the same record.
View 2 Replies
Feb 9, 2010
I was just wondering that when we insert some datainto database we can use the following method.
create a sql datasourse ,
set the conection string,
set the insert comand type,
set insert parameters,
and Set the SQL Statement like
sqldatasource.insertStatement="insert into tablename(field1, field2) values(@parameter1, @parameter2)";
and then call the datasourse insert() function,
this method is usually used for single line insertion at the end of the DB.
Now I am a starter in asp.net c#,
I want to know that if There is a way that I have lots of data like some XML file that have the same table structure as the SQL database table
and I want to write that data to the database, HOw to do it Properly,
I can Still achieve the required results by iterating through XML datarows and for each row conecting to db and inserting and then disconecting dfrom the db,
But I want to know that if there is a way to do it in one go meaning I have to conect to database only one time,
Note: I already have some data in my SQL table, there are three fields(ID Name and Nickname) the ID(primary key) is INT type and auto incremented, the name and nickname are strigns.
the xml file has the structure
<userdata>
<user>
<name>michel</name>
<nickname>micho</nickname>
</user>
</userdata>
View 3 Replies
Apr 25, 2010
Whenever I run the following code to insert a record into database:
protected void Button1_Click(object sender, EventArgs e)
View 5 Replies
Jan 21, 2010
We have a ASP.NET 3.5 application where we want each user to have their own database. Everyone uses the same web application, but the database their data is kept separate from all others. So every customer has his own database. All database structures are identical, so the only thing the application has to do is connect to the right one when the user logs in.
I envision that we look up a connectionstring to their data at the time they log in and set it globally for that session. With Linq, the connection is handled automatically though, in the background, based on the setting in the web.config file. Unlike SQL Server where you set it each time you use it, with Linq it is hidden in the .NET generated class files. So how do we make this vary by user, while using the same application for everyone?
View 2 Replies
Feb 24, 2010
i am trying to read data of from a sql database
the code that im using is as follows:
[Code]....
as you can see, im using table adapters - though when i run the page, it throughs me the following error, which i'm finding hard to understand
for my last project, i had to use the exact code, but at the time, i was using an access DB and now i'm uning sql D|B
the only difference from last time is that instead of using :
using System.Data.OleDb;
Now im using: using System.Data.SqlClient; //sql server
View 4 Replies
Apr 11, 2010
I have this code and not sure what is wrong.
csconnection = New OleDbConnection (Stringconnection)
cscommand = new OleDbCommand("INSERT INTO Login ([Username], [Password], [Name], [DOB], [Gender], [Nationality]) VALUES (@Username, @Password, @Name, @Dob, @Gender, @Nationality);") [code]...
it just says errorat bottom of page and is there a way to tell the webpage to show me the error.
View 3 Replies
Mar 10, 2010
I have a lot of members data to enter into the ASPNETDB database. How can I read this data from an Access data file and input into the SQL database. All data is for user Names and Password,
View 1 Replies
Jan 3, 2010
I am using an SQL Express server hosted on a different machine and it is listed in my server explorer just fine. It is listed as my connection string in my web.config just fine as well and lastly it seems to sync just fine with my asp.net membership tables. My question is does it need to be listed in my app data folder of my site? Currently I have the ASPNETDB.mdf connection listed, which is apparently just a local sql express connection. The database I am using in my webconfig and other files is not listed so do I need to add it there?
Second question is about DAL, Data Access Layers. I have mostly been using presentation level SQL commands with my data presentation controls. Manually entering separate select, insert and update statements. I just went through a tutorial that stated the best way to interact with your database in asp.net is with DAL using table adapters. It mentioned that it gives you the ability to use strongly-typed references to each row. My question is can I use the same method multiple times on a single page. For instance a method inside an adapter named GetProductsByID(@ID) ? What if I want this bound to three different gridviews on a single page? Anyone have any other general things to point out about using DAL over presentation level commands?
View 2 Replies
Mar 18, 2010
Is linq just for retrieving data or can you send data to the database using it?
View 3 Replies
Jun 21, 2010
iam using asp.net2.0 with c#, with backend sql server2000
in my client system i have to create dynamically procedure and return the result
but when iam using in my local system the code is working fine but at client system it it not working
[Code]....
View 5 Replies
Jan 18, 2010
I have SQL Server Database Primary Data File.
I want to recover the data from that file in to my data base which has the empty tables.
I have Microsoft SQL Server Query File which contain the table structure.
View 1 Replies
Mar 27, 2010
i'm new to programming and i'm doing a project of ana e-store, i have a data gridview that brings data from a data base and it have to more templeate files one a textbox and the other one is a label. and i have a button outside the grivdview. what i need that when i press on this button it will take the values from the grid view and insert them into a new sql table.
[Code]....
and here is the VB code that i'm trying to use with no luck : [Code]....
View 7 Replies
Apr 24, 2010
how to import data from notepad to sql database.
View 1 Replies
Nov 16, 2010
how can i save text introduced in textboxes to a database in visual studio 2010? Data base is managed with sql management studio 2008..
View 3 Replies
Feb 7, 2011
As the subject says, i display a gridview filtered from 3 dropdownlist, wich all the items are from a local Data base, once i display this gridview i want to select a row with a button then and add, modify or delete data from it and then this new info is saved on the data base, so when i display the grid again i will see the new info. Im working on visual studio 2010, i dont use code behind, all is in asp .net.
[Code]....
View 1 Replies
Jun 24, 2010
I am using Visual Studio 2008 and asp.net technology with C# language. Whenever I try to choose any datasource for databound control like "gridView" of "ObjectDataSource". The connection can be tested as OK but when I click on OK the it gives following error and database could not be added: "Object Reference not set set to an instance of an object." it was working perfectly fine in Visual Studio 2005, so kindly help if there is some settings that are to be adjusted for 2008 version.
View 9 Replies
Mar 5, 2010
I m uploading a text file. I want to read that text file line by line and I want to save that data into database if there are no errors in that text file. I have 5 different columns in database and I want to take those 5 columns data in the text file and insert into respective columns.
For this, which is the best way to do. Can we read and insert data into respective fields in no time.
View 2 Replies
Apr 6, 2010
I am having a field called Semester, i will enter it as 1 initially. Then it should automatically increase 1 semester every six months till sixth semester in the database (sql server 2005) is it possible?
View 5 Replies
Feb 4, 2010
I'm developing a web application with ASP.net and Sql Server 2005.
How i can retrive data from database on every seconds basis?
For your information , I have a Server application which will update hardware status (every seconds) into database and
my web client need to retrieve and display out the latest status (every seconds)
View 1 Replies
Feb 24, 2010
that is i want to delete my all he data of database but i want taht all the tables a andreletion will be remain same how can i do it easily
View 7 Replies