Showing posts with label access. Show all posts
Showing posts with label access. Show all posts

Friday, March 23, 2012

How to terminate the client connections manually?

Hi guys,

You know when restoring a database in SQL Server, exclusive access is required. With sp_who I can see the clients. But I don't know how to terminate the client connections easily. Usually I have to stop the server and restart it. I DO think it's too troublesome. Do you have any ideas? Is there any sp or command, or tool that may help? How do you deal with this issue?

Thanks!

Have a look at the kill command.|||Refer to Books Online, Topic: KILL Statement

Monday, March 19, 2012

how to syncronize record via ftp?

CIAO all people...!
Ihave 1 database di access 2000 built on 20 table...query and form,
users insert record easy from form.
I have Microsoft SQL Server Service Manager 7.00.623.
I have the same database in web space ...ex ...(ad esempio
ftp.tiscali.it/azienda/db/data.mdb)
how to syncronize record?
the all database is 60 mb
Access replica is ok for localhost or for a pc in lan...is not ok for
FTP...
Replica snapshot di SQL (with server distributore etc etc) is ok only for
SQL database but i have access...
Is this an Access question?
If so, please post it to microsoft.public.access.replication
Hilary Cotter
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html
Looking for a FAQ on Indexing Services/SQL FTS
http://www.indexserverfaq.com
"miikii" <m_piccSPAM@.DELCAKKIOhotmail.com> wrote in message
news:42144f3e$0$6316$5fc30a8@.news.tiscali.it...
> CIAO all people...!
> Ihave 1 database di access 2000 built on 20 table...query and form,
> users insert record easy from form.
> I have Microsoft SQL Server Service Manager 7.00.623.
> I have the same database in web space ...ex ...(ad esempio
> ftp.tiscali.it/azienda/db/data.mdb)
> how to syncronize record?
> the all database is 60 mb
>
> Access replica is ok for localhost or for a pc in lan...is not ok for
> FTP...
> Replica snapshot di SQL (with server distributore etc etc) is ok only for
> SQL database but i have access...
>
>

Wednesday, March 7, 2012

How to store millions of files in Sql Server 2008?

There is some talk about being able to store Files (or more specifically) access FileStreams within Sql Server 2008. How is this being handled internally, and in the case of multi-millions of files (which the current Windows File System has a hard time handling), how will this be managed? Does it involve replication, Specific FileGroups, a SAN, CIFS shares, etc. Any help or information you can provide would be useful.

In the case of Oracle, there you have access to RAC or to something like GFS. Can you highlight what makes the Sql 2008 implementation different, able to scale better, etc.

Thanks,

Andre' Hazelwood

What you're refferring to is the new FILESTREAM data type. As I've understood it, the data is stored in files (or filestreams) in the file system, but can be accessed from the database as if they were blobs. Actually, that's pretty neat, and something which MAY cause me to change my opinion regarding SharePoint, if or when it will start using this new feature. I'm really looking forward to work with this one. I'm afraid that's all i know (or think I know) so far.|||

Hi, thank you for this question. Can you please be more specific on which scenarios you are referring to when you say "Windows File system has hard time handling in the case of multi millions of files"? I need you to first clearly identify what issue(s) you have in mind (examples/perf numbers can help), since not all are related to the way we organize files. If you could provide any data on the specific issue you will refer to in your reply this would be very helpful to answer your question better. Typically, NTFS can scale up to a very large number (greater than million) files per directory as long as some conditions are met (filenames are small, short file name generation is disabled, etc.).

thanks,

|||

I see the original poster did not followup on that question. I am interested in the topic, so I can answer from our point of view:

a) I have seen NT have real problems with too many files and directories. I don't remember exact numbers but there was millions of files and directories (never more than 5 levels deep) with short names for a total of about 800gigs. Opening a folder could take 5-20 minutes. Access through FTP/HTTP was much better of course. Some pretty large files but 90% of them were smaller than 1 mb (all zipped files). And lots of directories.

b) we have scenarios were we could store up to 4-5 terabytes but I expect to answer "up to 10-12" in 4-5 years at most.

c) I started looking at the CTP but haven't looked at Filestreams yet (lack of time) so I could ask a number of relevant questions that already have answers but I should say that the first things I will look for is how to manage that data (partition, backup/restore, mirror, etc) with flexibility/safety, how to access it (OLEDB is slow for BLOBS and giving HTTP/FTP access directly in the db is a must) and the licensing impact (most scenarios are to segregate that kind of services to a distinct server. Are filestreams part of the database size? If it is not, I can see lots of small DAM starting to appear, using Express, and proliferate through the enterprise. I would use such small DAMs in the DMZ for example and keep the big thing inside the LAN. But if Filestreams are part of the 4 gigs limit, we will stay with our current practice of storing in the file system and keep only a reference in the database.

d) How can this work with a mirror? We are currently using DoubleTake for its ability to mirror both the db and the file system. Could we now rely just on db mirroring?

e) can we store large UDT in there? I can see scenarios were I would like to store an Invoice as a large UDT. One of its property could be to expose itself as a PDF/XPS format, but keeping extra metadata as part of the Invoice is not all. Being an object, the Invoice can have some specific behaviors based on the context/user or from what is requested of it. mmm. Is SQL2008 bridging the object-sql gap by bringing objects as rich Relational Domains? Sure smells like it:-) Wow, I am impressed and exited by the possibilities!

How to store millions of files in Sql Server 2008?

There is some talk about being able to store Files (or more specifically) access FileStreams within Sql Server 2008. How is this being handled internally, and in the case of multi-millions of files (which the current Windows File System has a hard time handling), how will this be managed? Does it involve replication, Specific FileGroups, a SAN, CIFS shares, etc. Any help or information you can provide would be useful.

In the case of Oracle, there you have access to RAC or to something like GFS. Can you highlight what makes the Sql 2008 implementation different, able to scale better, etc.

Thanks,

Andre' Hazelwood

What you're refferring to is the new FILESTREAM data type. As I've understood it, the data is stored in files (or filestreams) in the file system, but can be accessed from the database as if they were blobs. Actually, that's pretty neat, and something which MAY cause me to change my opinion regarding SharePoint, if or when it will start using this new feature. I'm really looking forward to work with this one. I'm afraid that's all i know (or think I know) so far.|||

Hi, thank you for this question. Can you please be more specific on which scenarios you are referring to when you say "Windows File system has hard time handling in the case of multi millions of files"? I need you to first clearly identify what issue(s) you have in mind (examples/perf numbers can help), since not all are related to the way we organize files. If you could provide any data on the specific issue you will refer to in your reply this would be very helpful to answer your question better. Typically, NTFS can scale up to a very large number (greater than million) files per directory as long as some conditions are met (filenames are small, short file name generation is disabled, etc.).

thanks,

|||

I see the original poster did not followup on that question. I am interested in the topic, so I can answer from our point of view:

a) I have seen NT have real problems with too many files and directories. I don't remember exact numbers but there was millions of files and directories (never more than 5 levels deep) with short names for a total of about 800gigs. Opening a folder could take 5-20 minutes. Access through FTP/HTTP was much better of course. Some pretty large files but 90% of them were smaller than 1 mb (all zipped files). And lots of directories.

b) we have scenarios were we could store up to 4-5 terabytes but I expect to answer "up to 10-12" in 4-5 years at most.

c) I started looking at the CTP but haven't looked at Filestreams yet (lack of time) so I could ask a number of relevant questions that already have answers but I should say that the first things I will look for is how to manage that data (partition, backup/restore, mirror, etc) with flexibility/safety, how to access it (OLEDB is slow for BLOBS and giving HTTP/FTP access directly in the db is a must) and the licensing impact (most scenarios are to segregate that kind of services to a distinct server. Are filestreams part of the database size? If it is not, I can see lots of small DAM starting to appear, using Express, and proliferate through the enterprise. I would use such small DAMs in the DMZ for example and keep the big thing inside the LAN. But if Filestreams are part of the 4 gigs limit, we will stay with our current practice of storing in the file system and keep only a reference in the database.

d) How can this work with a mirror? We are currently using DoubleTake for its ability to mirror both the db and the file system. Could we now rely just on db mirroring?

e) can we store large UDT in there? I can see scenarios were I would like to store an Invoice as a large UDT. One of its property could be to expose itself as a PDF/XPS format, but keeping extra metadata as part of the Invoice is not all. Being an object, the Invoice can have some specific behaviors based on the context/user or from what is requested of it. mmm. Is SQL2008 bridging the object-sql gap by bringing objects as rich Relational Domains? Sure smells like it:-) Wow, I am impressed and exited by the possibilities!

How to store millions of files in Sql Server 2008?

There is some talk about being able to store Files (or more specifically) access FileStreams within Sql Server 2008. How is this being handled internally, and in the case of multi-millions of files (which the current Windows File System has a hard time handling), how will this be managed? Does it involve replication, Specific FileGroups, a SAN, CIFS shares, etc. Any help or information you can provide would be useful.

In the case of Oracle, there you have access to RAC or to something like GFS. Can you highlight what makes the Sql 2008 implementation different, able to scale better, etc.

Thanks,

Andre' Hazelwood

What you're refferring to is the new FILESTREAM data type. As I've understood it, the data is stored in files (or filestreams) in the file system, but can be accessed from the database as if they were blobs. Actually, that's pretty neat, and something which MAY cause me to change my opinion regarding SharePoint, if or when it will start using this new feature. I'm really looking forward to work with this one. I'm afraid that's all i know (or think I know) so far.|||

Hi, thank you for this question. Can you please be more specific on which scenarios you are referring to when you say "Windows File system has hard time handling in the case of multi millions of files"? I need you to first clearly identify what issue(s) you have in mind (examples/perf numbers can help), since not all are related to the way we organize files. If you could provide any data on the specific issue you will refer to in your reply this would be very helpful to answer your question better. Typically, NTFS can scale up to a very large number (greater than million) files per directory as long as some conditions are met (filenames are small, short file name generation is disabled, etc.).

thanks,

|||

I see the original poster did not followup on that question. I am interested in the topic, so I can answer from our point of view:

a) I have seen NT have real problems with too many files and directories. I don't remember exact numbers but there was millions of files and directories (never more than 5 levels deep) with short names for a total of about 800gigs. Opening a folder could take 5-20 minutes. Access through FTP/HTTP was much better of course. Some pretty large files but 90% of them were smaller than 1 mb (all zipped files). And lots of directories.

b) we have scenarios were we could store up to 4-5 terabytes but I expect to answer "up to 10-12" in 4-5 years at most.

c) I started looking at the CTP but haven't looked at Filestreams yet (lack of time) so I could ask a number of relevant questions that already have answers but I should say that the first things I will look for is how to manage that data (partition, backup/restore, mirror, etc) with flexibility/safety, how to access it (OLEDB is slow for BLOBS and giving HTTP/FTP access directly in the db is a must) and the licensing impact (most scenarios are to segregate that kind of services to a distinct server. Are filestreams part of the database size? If it is not, I can see lots of small DAM starting to appear, using Express, and proliferate through the enterprise. I would use such small DAMs in the DMZ for example and keep the big thing inside the LAN. But if Filestreams are part of the 4 gigs limit, we will stay with our current practice of storing in the file system and keep only a reference in the database.

d) How can this work with a mirror? We are currently using DoubleTake for its ability to mirror both the db and the file system. Could we now rely just on db mirroring?

e) can we store large UDT in there? I can see scenarios were I would like to store an Invoice as a large UDT. One of its property could be to expose itself as a PDF/XPS format, but keeping extra metadata as part of the Invoice is not all. Being an object, the Invoice can have some specific behaviors based on the context/user or from what is requested of it. mmm. Is SQL2008 bridging the object-sql gap by bringing objects as rich Relational Domains? Sure smells like it:-) Wow, I am impressed and exited by the possibilities!

Friday, February 24, 2012

how to store and access reservation data (was "small project")

I have a project need to store the information of reservation. For example, somebody wants to reserve a laptop. She will sign in the date from calender to use. I would like to let the administrator to access the database and update the database in the intranet. Also the user who want to reserve a resource can access the intranet to fill a form, after approving it, she can borrow the resource. Of course, this is small database. And we also have a report on this.Do you have any idea how to do it? I appreciate.This in a database? What's wrong with excel/plain text file?
A bit of asp/jsp and a simple database? Guess it depends on what's been used for other applications.