|
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 -
|
|
|
|
|
Don't cross post. You asked this same question in another forum. It is rude.
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
I am using sql server as my database i want to connect it thr internet so dat i can acess it from any wear, i?
i am getting an error like dis
An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: TCP Provider, error: 0 - No connection could be made because the target machine actively refused it.)
plz any one help
|
|
|
|
|
"
You must enable remote connections for each instance of SQL Server 2005 that you want to connect to from a remote computer. To do this, follow these steps:
1. Click Start, point to Programs, point to Microsoft SQL Server 2005, point to Configuration Tools, and then click SQL Server Surface Area Configuration.
2. On the SQL Server 2005 Surface Area Configuration page, click Surface Area Configuration for Services and Connections.
3. On the Surface Area Configuration for Services and Connections page, expand Database Engine, click Remote Connections, click Local and remote connections, click the appropriate protocol to enable for your environment, and then click Apply.
Note Click OK when you receive the following message:
Changes to Connection Settings will not take effect until you restart the Database Engine service.
4. On the Surface Area Configuration for Services and Connections page, expand Database Engine, click Service, click Stop, wait until the MSSQLSERVER service stops, and then click Start to restart the MSSQLSERVER service
"
See http://support.microsoft.com/default.aspx?scid=kb;EN-US;914277[^]
/*
Ghazi Hadi Al Wadi, PMP, ASQ SSGB, DBA
*/
|
|
|
|
|
cm pandian wrote: When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: TCP Provider, error: 0 - No connection could be made because the target machine actively refused it.
That tells it all. You need to configure it to allow remote connections.
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Instead of parsing through a string path representing a directory and a file name in order to only record the directory name, I decided to use the Common Dialog known as FileDialog. However, I am not certain how to retrieve the results from the File Dialog. Here is what I have so far:
Set dlgSaveAs = Application.FileDialog(msoFileDialogFolderPicker)
dlgSaveDirectory.Show
txtOutputFilePath.SetFocus
txtOutputFilePath.Text = dlgSaveDirectory.Item
For some reason, I do not get the dropdown list indicating a value for the dlgSaveDirectory. Why can't I see the drop down list? The value that I get on the last line is: "FileDialog(msoFileDialogFolderPicker)" which is assigned to the txtOutputFilePath.Text.
-- modified at 13:36 Friday 2nd November, 2007
|
|
|
|
|
You've asked your question in the wrong forum. This forum is for SQL/database related questions.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
Hello folks,
I have a SqlDataSource wired up to a GridView . I let the user filter by typing a value in a text box and invoking a parameterized FilterExpression . The GridView is set to have paging enabled and display, e.g., 10 records/page.
When I do a filter by typing an expression in a TextBox and clicking Submit, the GridView changes to display my query. Say for example the query returned 24 rows, so with my paging the GridView displays 3 pages. When I click a page in the Pager, the GridView 'forgets' my query and reverts back to displaying the entire table bound to it with the SelectCommand property.
How do I make a GridView 'remember' its filter results set between pages? I assume I handle GridView1_OnPageIndexChanging however I am a newbie, and it's not immediately appearent to me what sort of code I might use to ensure the query is remembered, so I could click 'Page 2' and actually get Page 2 of my filter instead of Page 2 of the whole table...
Thanks in advance.
Sincerely Yours,
Brian Hart
Department of Physics and Astronomy
University of California, Irvine
|
|
|
|
|
I found a solution that worked for me....my SqlDataSource.FilterExpression in the page code is:
<asp:SqlDataSource ID="SqlDataSource1" ... FilterExpression="{0} LIKE '%{1}%'">
<FilterParameters>
<asp:ControlParameter ControlID="SearchField" Name="field" PropertyName="SelectedValue" Type="String" />
<asp:ControlParameter ControlID="Value" Name="value"
PropertyName="Text" Type="String" />
</FilterParameters> To solve my problem above, I handled the GridView.PreRender event like so:
protected void GridView1_PreRender(object sender, EventArgs e)
{
SqlDataSource1.FilterExpression = "{0} LIKE \'%{1}%\'";
}
Basically, I just re-initialized my FilterExpression every time the GridView.PreRender event is fired. Thanks to you all.
|
|
|
|
|
How would I get the length of a textbox using VBA when there is no such code such as:
Dim intIndex, intIndexMax As Integer
intIndexMax = txtOutputFilePath.Length
For intIndex = intIndexMax To 0 Step -1
Next
Does anybody have some code to separate the directory path from the directory path and file name combination? Please provide some assistance...
|
|
|
|
|
Use a ruler?
(Or maybe something like txtOutputFilePath.Value.Length)
|
|
|
|
|
I think that I may not have stated my question clearly. What I meant was the length of the string value in the textbox not the width of the actual textbox as an object on the form.
I tried to assign the value to a string and to check that but I cannot get the strTextBox.Length value either.
Instead, I decided to use the FileDialog Common Dialog control. However, I am having some trouble retrieving values from that control as well. Please see the message above.
|
|
|
|
|
new_phoenix
Try: strTextBox.Text.Length
ken
|
|
|
|
|
Does anybody have some code to separate the directory path from the directory path and file name combination? Please provide some assistance...
try using dir() like this..
<br />
dir(txtOutputFilePath.text)<br />
im using it on vb6 hope it helps you..
|
|
|
|
|
hi
my aim is to create a ms access database table using c#.net
query for creating a table which i am using is
create table tab
(
name varchar(30),
dateofbirth datetime,
photo ole object
)
now the error is coming at ole position please suggest me what database type should i replace from Ole object to get rid of the problem
i will be heartly thankful to ......U.......
regards
sindhu tiwari
Always Innovative
|
|
|
|
|
use the key word image instead
create table tab
(
name varchar(30),
dateofbirth datetime,
photo image
)
cheers
Raz
/*
Ghazi Hadi Al Wadi, PMP, ASQ SSGB, DBA
*/
|
|
|
|
|
Hi all,
I have a SQL2005 database running in my PC.I would like to keep a back up to a CD.However i am not sure which files i have to copy.
When i try to copy database primary Datafile in C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data
It Comes up with an error saying file is being used,can't copy.
Please advice
Thanks
|
|
|
|
|
Copying files is not the right way to do it.
You should create a backup for the database as described here[^]
you get "file is being used" because SQL Server service opens the file.
|
|
|
|
|
Thank you very much.Its very helpfull.
After having the file forinstance BackUP_database.bak.Does it mean that this file contains all the script for creating the database together with the datas stored in table.
Thanks
|
|
|
|
|
Yes. If you use full backup option.
|
|
|
|